diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstableshared.code.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstableshared.code.tex | 74 |
1 files changed, 35 insertions, 39 deletions
diff --git a/Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstableshared.code.tex b/Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstableshared.code.tex index be1ce3ec05c..1cb10748269 100644 --- a/Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstableshared.code.tex +++ b/Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstableshared.code.tex @@ -17,12 +17,12 @@ % it under the terms of the GNU General Public License as published by % the Free Software Foundation, either version 3 of the License, or % (at your option) any later version. -% +% % This program is distributed in the hope that it will be useful, % but WITHOUT ANY WARRANTY; without even the implied warranty of % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % GNU General Public License for more details. -% +% % You should have received a copy of the GNU General Public License % along with this program. If not, see <http://www.gnu.org/licenses/>. % @@ -50,7 +50,7 @@ % 5. foreach column, there is a list of row-values (a row-vector) in % the \pgfplotslist format named % \csname\string<\namemacro>@<column name>\endcsname -% +% \newif\ifpgfplotstable@search@header \newif\ifpgfplotstable@firstline@is@header @@ -145,6 +145,7 @@ /pgfplots/table/z error minus expr/.initial=, /pgfplots/table/ignore chars/.initial=, /pgfplots/table/white space chars/.initial=, + /pgfplots/table/text special chars/.initial=, /pgfplots/table/comment chars/.initial=, /pgfplots/table/skip first n/.initial=0, /pgfplots/table/trim cells/.is if=pgfplotstable@trimcells, @@ -193,7 +194,7 @@ \pgfkeys{ % #1: the argument which should have been assigned. - % #2: an error message. + % #2: an error message. /pgfplots/exception/non unique colname/.code 2 args={% \ifx\pgfplotsexceptionmsg\relax \pgfplots@error{#2}% @@ -364,7 +365,7 @@ } % Declares a new getcolmethod class #1. -% The argument '#1' can then be used as argument for +% The argument '#1' can then be used as argument for % \pgfplotstable@getcol...\getcolmethod{#1}. % % #2: a set of keys which redefine the behavior. @@ -439,7 +440,7 @@ % % Ok, then check for special features. % - % 1. 'create col/...' + % 1. 'create col/...' % 2. 'create on use' % 3. 'alias' % @@ -499,7 +500,7 @@ \def\pgfplotstablegetcolumnbyname@impl@nosuchalias#1\of#2\to#3{ \pgfplotstablegetcolumnbyname@impl@nosuchalias@{#1}\of{#2}\to{#3}\pgfplotstablegetcolumnbyname@impl@createonuseforbiddentext@disable }% - + \def\pgfplotstablegetcolumnbyname@impl@nosuchalias@#1\of#2\to#3#4{% \pgfplotsthrow{no such element}{#3}{Sorry, could not retrieve aliased column '\pgfkeysvalueof{/pgfplots/table/alias/#1}' from table '\pgfplotstablenameof{#2}'. The original request was for '#1', which does not exist either.#4{#1}}\pgfeov% }% @@ -605,7 +606,7 @@ \def\pgfplotstablegetname#1#2{% \expandafter\let\expandafter#2\csname\string#1@@table@name\endcsname } - + % expands to the table file name of table '#1' \def\pgfplotstablenameof#1{% \csname\string#1@@table@name\endcsname @@ -698,7 +699,7 @@ % To show the problem, consider % \pgfplotstabletypeset[<options>] % \loadedtable -% +% % and we want to set the catcodes *before* \loadedtable is seen. % Well, there is a newline character after ']'! If we change the % catcodes, this newline will be considered as character and will make @@ -772,7 +773,7 @@ }% -% I don't know why; but I started with +% I don't know why; but I started with % >> \pgfplotstableread[]{file} to \macro % That ' to ' is really ugly. This here is for backwards % compatibility: @@ -992,7 +993,7 @@ \openin\r@pgfplots@reada=\pgfplotstableread@filename\relax \else \pgfplots@warning{% - You requested to open table '\pgfplotstableread@filename', but there is also a '\pgfplotstableread@filename.tex'. + You requested to open table '\pgfplotstableread@filename', but there is also a '\pgfplotstableread@filename.tex'. TeX will automatically append the suffix '.tex', so I will now open '\pgfplotstableread@filename.tex'. Please make sure you don't accidentally load TeX files - this may produce unrecoverable errors.}% \closein\r@pgfplots@reada @@ -1046,6 +1047,11 @@ \else \pgfplotstableinstallignorechars@\pgfplotstable@loc@TMPa{10}% \fi + \pgfkeysgetvalue{/pgfplots/table/text special chars}\pgfplotstable@loc@TMPa + \ifx\pgfplotstable@loc@TMPa\pgfutil@empty + \else + \pgfplotstableinstallignorechars@\pgfplotstable@loc@TMPa{12}% + \fi \ifx\pgfplotstableuninstallignorechars\pgfutil@empty \else \expandafter\def\expandafter\pgfplotstableuninstallignorechars\expandafter{% @@ -1054,7 +1060,7 @@ }% \fi \fi -}% +}% \let\pgfplotstableuninstallignorechars\pgfutil@empty% % #1 macro containing the characters as comma-separated list % #2 the catcode to assign @@ -1133,7 +1139,7 @@ \fi }% -% Copies the table column list and the column vectors of #1 to global buffers. +% Copies the table column list and the column vectors of #1 to global buffers. % @see \pgfplotstable@copy@globalbuffers@to % % Use these two methods to avoid scoping problems. @@ -1170,7 +1176,7 @@ % @see \pgfplotstable@copy@to@globalbuffers % % @PRECONDITION the global buffers contain all members of a table. -% +% % @POSTCONDITION The table '#1' is be initialised to these members. % Furthermore, \pgfplotsscanlinelength is set. \def\pgfplotstable@copy@globalbuffers@to#1{% @@ -1222,7 +1228,7 @@ \def\pgfplotstableread@loop@over@lines@frominline{% \pgfutil@ifnextchar\pgfplotstable@EOI{% \pgfutil@gobble - }{% + }{% \pgfplotstableread@loop@next }% }% @@ -1233,7 +1239,7 @@ \fi }% -% PRECONDITION: +% PRECONDITION: % \pgfplotstable@LINE contains the current input line. \def\pgfplotstableread@loop@processnextline{% \expandafter\pgfplotstableread@checkspecial@line\pgfplotstable@LINE\pgfplotstable@EOI @@ -1252,7 +1258,7 @@ % \ifnum\pgfplotstableread@lineno=0 % \let\pgfplotstable@firstline=\pgfplotstable@LINE % \fi - %-------------------------------------------------- + %-------------------------------------------------- %\pgfplots@message{READING LINE \thepgfplotstableread@lineno: '\meaning\pgfplotstable@LINE'.}% \pgfplotstableread@curline@contains@colnamesfalse \ifnum\pgfplotstableread@numcols=0\relax @@ -1331,21 +1337,17 @@ \pgfplotstableread@skiplinetrue \else \let\pgfplotstableread@tmpb=$% + \let\pgfplotstableread@tmpb=\pgfplotstable@EOI% \ifx\pgfplotstableread@tmp\pgfplotstableread@tmpb - \let\pgfplotstableread@checkspecial@line@@=\pgfplotstableread@process@flags@line + \pgfplotstableread@skiplinetrue + \pgfplotsscanlinecomplete% the line is empty; same as \par! \else - \let\pgfplotstableread@tmpb=\pgfplotstable@EOI% + \let\pgfplotstableread@tmpb=\par% \ifx\pgfplotstableread@tmp\pgfplotstableread@tmpb \pgfplotstableread@skiplinetrue - \pgfplotsscanlinecomplete% the line is empty; same as \par! + \pgfplotsscanlinecomplete% the line is empty; \else - \let\pgfplotstableread@tmpb=\par% - \ifx\pgfplotstableread@tmp\pgfplotstableread@tmpb - \pgfplotstableread@skiplinetrue - \pgfplotsscanlinecomplete% the line is empty; - \else - \pgfplotstableread@checkspecial@line@default% - \fi + \pgfplotstableread@checkspecial@line@default% \fi \fi \fi @@ -1391,13 +1393,7 @@ % }% % }% % } -%-------------------------------------------------- - -\long\def\pgfplotstableread@process@flags@line$flags {% -%\pgfplots@message{Ignoring flags line ...}% - \pgfplotstableread@skiplinetrue - \pgfplotstableread@impl@gobble -} +%-------------------------------------------------- \def\pgfplotstableread@create@column@lists{% \pgfutil@loop @@ -1422,7 +1418,7 @@ \def\pgfplotstable@EOI{\pgfplotstable@EOI}% -% A loop command which processes every single entry in a raw data row #2 +% A loop command which processes every single entry in a raw data row #2 % and invokes the macro #1{<arg>} for each found column entry. % % Columns are separated by the /pgfplots/table/col sep character. @@ -1596,7 +1592,7 @@ % \def\thisrow#1{\pgfplotstable@thisrow@impl{#1}{macroprefix@}{\pgfplotstable@thisrow@impl@}} % % Then, \thisrow{existingcol} -% will expand to +% will expand to % -> \pgfplotstable@thisrow@impl@{\csname macroprefix@existingcol\endcsname} % -> \csname macroprefix@existingcol\endcsname % @@ -1649,7 +1645,7 @@ % \pgfplotstablereadevalptr{\ptr}{\content}% % -> do something with \content! % } -% +% % \pgfplotstableread{<file>} to listener<\macro> % % -> will evaluate \macro foreach row. @@ -1874,7 +1870,7 @@ }% \def\pgfplotstabletypeset{% - \pgfutil@ifnextchar[{% + \pgfutil@ifnextchar[{% \pgfplotstabletypeset@opt }{% \pgfplotstabletypeset@opt[]% @@ -1956,7 +1952,7 @@ \let\pgfplotstablerow=\relax }% % helper method to allow nesting. It copies \pgfplotstablerow. -% #1: the expanded value of \pgfplotstablerow. +% #1: the expanded value of \pgfplotstablerow. \long\def\pgfplotstableforeachcolumnelement@#1#2{% #2\relax \def\pgfplotstablerow{#1}% restore to old value. |