Was muss ich machen, dass ich MyStyle mit '##1'

Öffne in Overleaf
\pgfplotstableset{
MyStyle/.style={
every row 0 column 0/.style={postproc cell content/.style={@cell content={Zusatz: ##1}}}}
}

als Style verwenden kann.

Bei der 2. Tabelle sollte eigentlich 'Zusatz: 1' stehen.

alt text

Öffne in Overleaf
\documentclass[border=5mm]{standalone}
\usepackage{pgfplotstable}

\usepackage{tikz, amsmath}
\usetikzlibrary{matrix,fit} % matrix scheints benötigt

\pgfplotstableread[]{
A  B 
1  2 
3  2
}\test

\pgfplotstableset{
MyStyle/.style={
every row 0 column 0/.style={postproc cell content/.style={@cell content={Zusatz: ##1}}}}
}

\begin{document}
\pgfplotstabletypeset[]{\test}

\pgfplotstabletypeset[MyStyle]{\test}
\end{document}

gefragt 07 Okt '18, 14:44

cis's gravatar image

cis
9.5k75452491
Akzeptiert-Rate: 29%


Hab es hinbekommen:

Man kann es mit

postproc cell content/.append style={ /pgfplots/table/@cell content/.add={Zusatz $\bf}{$},

machen.

MWE:

Öffne in Overleaf
\documentclass[border=5mm]{standalone}
\usepackage{pgfplotstable}

\usepackage{tikz, amsmath}
\usetikzlibrary{matrix,fit} % matrix scheints benötigt

\pgfplotstableread[]{
A  B 
1  2 
3  2
}\test

\pgfplotstableset{
% Alt
%every row 0 column 0/.style={postproc cell content/.append style={@cell content={Zusatz: ##1}}}}
% Neu
MyStyle/.style={every row 0 column 0/.style={
postproc cell content/.append style={
/pgfplots/table/@cell content/.add={Zusatz $\bf}{$},
},}
}
}

\begin{document}
\pgfplotstabletypeset[]{\test}

\pgfplotstabletypeset[MyStyle]{\test}
\end{document}
Permanenter link

beantwortet 07 Okt '18, 18:26

cis's gravatar image

cis
9.5k75452491
Akzeptiert-Rate: 29%

Deine Antwort
Vorschau umschalten

Folgen dieser Frage

Per E-Mail:

Wenn sie sich anmelden, kommen Sie für alle Updates hier in Frage

Per RSS:

Antworten

Antworten und Kommentare

Markdown-Grundlagen

  • *kursiv* oder _kursiv_
  • **Fett** oder __Fett__
  • Link:[Text](http://url.com/ "Titel")
  • Bild?![alt Text](/path/img.jpg "Titel")
  • nummerierte Liste: 1. Foo 2. Bar
  • zum Hinzufügen ein Zeilenumbruchs fügen Sie einfach zwei Leerzeichen an die Stelle an der die neue Linie sein soll.
  • grundlegende HTML-Tags werden ebenfalls unterstützt

Frage-Themen:

×39
×7

gestellte Frage: 07 Okt '18, 14:44

Frage wurde gesehen: 3,483 Mal

zuletzt geändert: 07 Okt '18, 18:26