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 | 14 |
1 files changed, 11 insertions, 3 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 1cde825708d..91677f6e15e 100644 --- a/Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable.code.tex +++ b/Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable.code.tex @@ -914,6 +914,12 @@ \pgfkeyssetvalue{/pgfplots/table/@cell content}{#1&}% \fi }, + % this can be omitted to omit the header row: + /pgfplots/table/output empty row/.style={% + /pgfplots/table/typeset cell/.code={% + \pgfkeyslet{/pgfplots/table/@cell content}\pgfutil@empty% + }% + }, /pgfplots/table/reset styles/.style={ /pgfplots/table/every table/.code=, /pgfplots/table/every odd column/.code=, @@ -1930,8 +1936,11 @@ \noexpand\def\noexpand\pgfplotstable@before{\the\t@pgfplots@toka}% \noexpand\def\noexpand\pgfplotstable@after{\the\t@pgfplots@tokb}% }% + \pgfkeysgetvalue{/pgfplots/table/typeset cell/.@cmd}\pgfplots@loc@TMPa + \global\let\pgfplots@glob@TMPd=\pgfplots@loc@TMPa \endgroup \pgfplots@glob@TMPc + \let\pgfplotstable@headrow@typesetcell=\pgfplots@glob@TMPd % insert 'before row' here: \t@pgfplots@toka=\expandafter{\pgfplotstable@before}% \t@pgfplots@tokb=\expandafter{\pgfplotstable@curline}% @@ -1942,8 +1951,7 @@ % \advance\c@pgfplotstable@colindex by1\relax % typeset the cell: - \pgfkeysgetvalue{/pgfplots/table/typeset cell/.@cmd}\pgfplots@loc@TMPa - \expandafter\pgfplots@loc@TMPa\pgfplotstable@colname@out\pgfeov + \expandafter\pgfplotstable@headrow@typesetcell\pgfplotstable@colname@out\pgfeov \pgfkeysgetvalue{/pgfplots/table/@cell content}\pgfmathresult % % append this cell: @@ -2693,7 +2701,7 @@ \else \ifx\pgfplotstable@variance@table\pgfutil@empty \t@pgfplots@toka=\expandafter{\pgfplotstable@table}% - \t@pgfplots@tokb=\expandafter{\pgfplotstable@variance@table}% + \t@pgfplots@tokb=\expandafter{\pgfplotstable@variance@colname}% \edef\pgfplots@loc@TMPa{{\the\t@pgfplots@tokb}\noexpand\of{\the\t@pgfplots@toka}}% \expandafter\pgfplotstablegetcolumn\pgfplots@loc@TMPa\to\pgfplotstable@VARIANCE \else |