diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/texapi/texapi.tex | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/generic/texapi/texapi.tex b/Master/texmf-dist/tex/generic/texapi/texapi.tex index 11b31c9eadf..8adfb7dfdc7 100644 --- a/Master/texmf-dist/tex/generic/texapi/texapi.tex +++ b/Master/texmf-dist/tex/generic/texapi/texapi.tex @@ -4,7 +4,7 @@ % Author: Paul Isambert. % E-mail: zappathustra AT free DOT fr % Comments and suggestions are welcome. -% Date: June 2010. +% Date: July 2010. % \ifx\texapialreadyloaded\somethingtotallyundefined \else @@ -16,6 +16,7 @@ \expandafter\endinput \fi % +\def\texapiversion{1.01} \expandafter\edef\csname pi@restorecatcodes\endcsname{% \catcode`\noexpand\@=\the\catcode`@\relax \catcode`\noexpand\_=\the\catcode`_\relax @@ -509,7 +510,7 @@ \ifnextnospace[{\pi@newfor_create{#1}{#2}{#3}{#4}} {\pi@newfor_create{#1}{#2}{#3}{#4}[]}% } -\let\pi@newfor_pi@nf_tm_\relax +\letcs{pi@newfor_\detokenize{\pi@nf_tm}_}\relax \let\pi@nf_tm\pi@terminator \let\pi@newfor_preloop\emptycs \long\def\pi@newfor_create#1#2#3#4[#5]{% @@ -579,7 +580,7 @@ }% \ifpi@dofor_noempty \long\defcs{pi@newfor_userdefined:\commandtoname#1}#6#2{% - \ifcs{pi@newfor_\commandtoname###5_} + \ifcs{pi@newfor_\detokenize{###5}_} {\pi@gobbletoterminator{#4}}% {\ifemptystring{###5} {\usecs{pi@newfor_userdefined:\commandtoname#1}#7} @@ -587,7 +588,7 @@ }% \else \long\defcs{pi@newfor_userdefined:\commandtoname#1}#6#2{% - \ifcs{pi@newfor_\commandtoname###5_} + \ifcs{pi@newfor_\detokenize{###5}_} {\pi@gobbletoterminator{#4}} {#3\pi@newfor_preloop\pi@newfor_markloop{pi@newfor_userdefined:\commandtoname#1}#7}% }% |