diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable.code.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable.code.tex | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable.code.tex b/Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable.code.tex index 19e19fb3fe1..84971e5045f 100644 --- a/Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable.code.tex +++ b/Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable.code.tex @@ -149,7 +149,7 @@ % this sanity checking is NOT fool proof: it % fails if there are different occurances of % unique in the same file - \pgfplotstable@error{Sorry, the row predicate /pgfplots/table/unique={#1} has been used in the wrong context: it needs to be invoked for the very first processed column, not column no \pgfplotstablecol. Please provide it as argument to \string\pgfplotstabletypeset[unique={#1}] and not inside of column-specific styles}% + \pgfplotsthrow{invalid argument}{Sorry, the row predicate /pgfplots/table/unique={#1} has been used in the wrong context: it needs to be invoked for the very first processed column, not column no \pgfplotstablecol. Please provide it as argument to \string\pgfplotstabletypeset[unique={#1}] and not inside of column-specific styles}\pgfeov% }{}% \fi % acquire the assembled list here: we'll do a lot of @@ -1880,6 +1880,8 @@ \global\advance\c@pgfplotstable@colindex by1\relax }% % + \pgfplotstable@disable@column@styles + % \pgfplotslistcheckempty\pgfplotstabletypeset@final@colnames \ifpgfplotslistempty \let\pgfplotstable@result=\pgfutil@empty @@ -2121,6 +2123,20 @@ \pgfplots@glob@TMPa% execute 'write to macro' if set. }% +\def\pgfplotstable@disable@column@styles@error#1{% + \pgfplotsthrow{invalid argument}\pgfplots@loc@TMPa{Sorry, the key '#1' has been assigned while processing row options. However, it needs to be invoked while processing column options. If your options depend on specific row indices, consider using \string\pgfplotstablerow\space and \string\pgfplotstablerows}\pgfeov% +}% +\def\pgfplotstable@disable@column@styles@#1{% + \pgfkeysdef{/pgfplots/table/#1/.code}{\pgfplotstable@disable@column@styles@error{#1}}% + \pgfkeysdef{/pgfplots/table/#1/.append code}{\pgfplotstable@disable@column@styles@error{#1}}% + \pgfkeysdefargs{/pgfplots/table/#1/.add code}{##1##2}{\pgfplotstable@disable@column@styles@error{#1}}% + \pgfkeysdef{/pgfplots/table/#1/.append style}{\pgfplotstable@disable@column@styles@error{#1}}% +} +\def\pgfplotstable@disable@column@styles{% + \pgfplotstable@disable@column@styles@{postproc cell content}% + \pgfplotstable@disable@column@styles@{preproc cell content}% + \pgfplotstable@disable@column@styles@{assign cell content}% +}% \newif\ifpgfplotstable@isfirstrow \newif\ifpgfplotstable@islastrow |