diff options
author | Karl Berry <karl@freefriends.org> | 2013-10-03 22:23:41 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-10-03 22:23:41 +0000 |
commit | 17c26f8a0e90231c7f95311cd8270fcd345002e4 (patch) | |
tree | b0378783b5421fc11bc25ca967c349d4938fd923 /Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable.code.tex | |
parent | 9334469d545fb017cccf5b7f4075005dc17a4949 (diff) |
pgfplots (3oct13)
git-svn-id: svn://tug.org/texlive/trunk@31822 c570f23f-e606-0410-a88d-b1316a301751
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 |