diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/pgfplots/pgfmanual-en-macros.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/pgfplots/pgfmanual-en-macros.tex | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/latex/pgfplots/pgfmanual-en-macros.tex b/Master/texmf-dist/doc/latex/pgfplots/pgfmanual-en-macros.tex index e12e483dcb6..e9082ddce87 100644 --- a/Master/texmf-dist/doc/latex/pgfplots/pgfmanual-en-macros.tex +++ b/Master/texmf-dist/doc/latex/pgfplots/pgfmanual-en-macros.tex @@ -798,7 +798,7 @@ \gdef\@gobble@till@return#1^^M{} \gdef\@gobble@till@return@ignore#1^^M{\ignorespaces} \gdef\typesetcomment{\catcode`\%=13\def%{\@typeset@till@return}} -\gdef\@typeset@till@return#1^^M{{\def%{\char`\%}\textsl{\char`\%#1}}\par} +\gdef\@typeset@till@return#1^^M{{\def%{\char`\%}\pgfkeysvalueof{/codeexample/comment font}{\char`\%#1}}\par} \endgroup % Define tab-implementation functions @@ -873,8 +873,9 @@ vbox/.code= {\def\code@pre{\vbox\bgroup\setlength{\hsize}{\linewidth-6pt}}\def\code@post{\egroup}}, ignorespaces/.code= {\let\@gobble@till@return=\@gobble@till@return@ignore}, leave comments/.code= {\def\code@catcode@hook{\catcode`\%=12}\let\commenthandler=\relax\let\typesetcomment=\relax}, + comment font/.initial=\textsl,% FIXME : doesn't work!? tabsize/.initial=0, - newline/.initial=, + newline/.initial=^^J,% use 'newline=^^J' to insert a *real* newline every codeexample/.style={width=4cm+7pt}, } @@ -914,6 +915,7 @@ \commenthandler% \xdef\code@temp{#1}% removes returns and comments }% +%\message{Nach returntospace: \meaning\code@temp^^J^^J^^J}% \colorbox{graphicbackground}{\color{black}\ignorespaces% \code@pre\expandafter\scantokens\expandafter{\code@temp\ignorespaces}\code@post\ignorespaces}% }% |