diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgfmanual.prettyprinter.code.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgfmanual.prettyprinter.code.tex | 45 |
1 files changed, 22 insertions, 23 deletions
diff --git a/Master/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgfmanual.prettyprinter.code.tex b/Master/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgfmanual.prettyprinter.code.tex index 21ba1b5b2a0..07bfe1e4245 100644 --- a/Master/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgfmanual.prettyprinter.code.tex +++ b/Master/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgfmanual.prettyprinter.code.tex @@ -9,12 +9,12 @@ %%% PGF parts. The copyrights are as they appear in PGF. %%% %%% Note that pgfplots has compatible licenses. -%%% +%%% %%% This copy has been modified in the following ways: %%% - nested \input commands have been updated -%%% +%%% % -% Support for the contents of this file will NOT be done by the PGF/TikZ team. +% Support for the contents of this file will NOT be done by the PGF/TikZ team. % Please contact the author and/or maintainer of pgfplots (Christian Feuersaenger) if you need assistance in conjunction % with the deployment of this patch or partial content of PGF. Note that the author and/or maintainer of pgfplots has no obligation to fix anything: % This file comes without any warranty as the rest of pgfplots; there is no obligation for help. @@ -29,7 +29,7 @@ % % Provides a user-friendly interface to create function plots (normal % plots, semi-logplots and double-logplots). -% +% % It is based on Till Tantau's PGF package. % % Copyright 2007/2008/2009 by Christian Feuersänger. @@ -38,12 +38,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/>. % @@ -56,7 +56,7 @@ % right place. % % ATTENTION: -% this is NOT a sophisticated syntax highlighter like lstlistings! +% this is NOT a sophisticated syntax highlighter like lstlistings! % It has rather strict assumptions about how to use it (the input must % have been read verbatim, for example). @@ -96,7 +96,7 @@ % For example: % /codeexample/prettyprint/key value/my key/.code 2 args={name=#1, value =#2} % If such a key exists, it will be invoked with {#1}{#2} as - % arguments. Otherwise, the generic method + % arguments. Otherwise, the generic method % /codeexample/prettyprint/key value with style detection={#1}{#2} % will be invoked. /codeexample/prettyprint/key value/.code 2 args={% @@ -158,7 +158,7 @@ % on the 'cs arguments/<CS NAME>' key; it contains the integer % number. % - % For example, if + % For example, if % |cs arguments/pgfkeys/.initial=1|, % the pretty printer invokes % |cs with args={\pgfkeys}{<argument>}. @@ -191,9 +191,9 @@ % % For every identified control sequence, the key % /codeexample/prettyprint/cs/<CSNAME>/.@cmd - % will be checked. If it exists, it will be used instead of + % will be checked. If it exists, it will be used instead of % 'cs with args' (with the same special case restrictions for - % early end-of-input). + % early end-of-input). % % The <CSNAME> must not contain the '\'. % @@ -207,7 +207,7 @@ /codeexample/prettyprint/cs arguments/end/.initial=1, /codeexample/prettyprint/cs/end/.code 2 args={#1\{#2\pgfmanualclosebrace}, % - % a point coordinate (#1) + % a point coordinate (#1) % Note that '#1' will contain the braces (if there was one), /codeexample/prettyprint/point/.code={#1},% % @@ -219,7 +219,7 @@ % the same with specialised code: %/codeexample/prettyprint/point with cs/<CS NAME>/.code 2 args={(#1:#2},% % - % + % % A predefined style which colors every identified token. It's % purpose is only debugging. /codeexample/prettyprint/colored/.style={% @@ -307,14 +307,14 @@ % % FIXME % THIS INTRODUCES A NEW GROUP! Does that hurt the pretty printer?? -% +% \def\pgfmanual@pretty@installcommenthandler{% \expandafter\def\pgfmanual@pretty@activepercent{% \begingroup \pgfmanualprettycommentactivetrue \expandafter\let\pgfmanual@pretty@activenl=\pgfmanual@pretty@recoveraftercomment \expandafter\def\pgfmanual@pretty@activepercent{\%}% - %\tt + %\tt \% % }% }% @@ -552,7 +552,7 @@ % \pgfmanualprettyprintercollectargcount with balanced braces. The braces % have \catcode 12. % POSTCONDITION: -% 1. the arguments will be collected as +% 1. the arguments will be collected as % '<result> := {<first arg>}{<second arg>}', % 2.1 the macro \pgfmanualprettyprinternumcollectedargs will contain % the *actual* number of *completely* collected arguments, @@ -563,7 +563,7 @@ % properly. % Afterwards, #2 will be invoked to recover from the argument % collection. -% +% % % Example: % \pgfmanualprettyprintercollectargcount{2}{\donnextstep} @@ -573,7 +573,7 @@ % \pgfmanualprettyprinterhandlecollectedargs{{_1 first argument }_2 {_1 second argument }_2 } % \donnextstep % next tokens -% +% % % % ATTENTION: @@ -725,7 +725,7 @@ \newif\ifpgfmanualprettyprinterfoundterminator % Collects tokens inside of a token list up to a single delimiting token, dealing with nested -% catcode-12-braces. +% catcode-12-braces. % % #1: is the end token, the delimiter. It won't be collected. % #2: is code to invoke after @@ -736,7 +736,7 @@ % \pgfmanualprettyprintercollectargcount with balanced braces. The braces % have \catcode 12. % POSTCONDITION: -% - the arguments will be collected as +% - the arguments will be collected as % '<result> := <token list>' % and then, \pgfmanualprettyprinterhandlecollectedargs{<result>} will be % invoked. Just define \pgfmanualprettyprinterhandlecollectedargs @@ -745,7 +745,7 @@ % - The boolean \ifpgfmanualprettyprinterfoundterminator will be set to true if and only if '#1' has been found. % % @see \pgfmanualprettyprintercollectargcount for more details. -% +% \def\pgfmanualprettyprintercollectupto#1#2{% \pgfmanualprettyprinterarghasunmatchedbracesfalse \pgfmanualprettyprinterfoundterminatortrue @@ -918,7 +918,7 @@ \ifx\pgfmanual@loc@TMPa\pgfmanual@pretty@rbrace #1% \else - % found the beginning of a key! + % found the beginning of a key! % We will collect the key name into % \toks0. \toks0={}% @@ -1117,4 +1117,3 @@ \edef\pgfmanual@loc@TMPa{{\pgfmanual@pretty@pgfkeys@collectkey@keyname}}% \expandafter\pgfmanual@loc@TMPb\pgfmanual@loc@TMPa{#1}\pgfeov } - |