diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/oberdiek/iflang.sty')
-rw-r--r-- | Master/texmf-dist/tex/generic/oberdiek/iflang.sty | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/generic/oberdiek/iflang.sty b/Master/texmf-dist/tex/generic/oberdiek/iflang.sty index 40f7d8a5fd0..3823e4329ea 100644 --- a/Master/texmf-dist/tex/generic/oberdiek/iflang.sty +++ b/Master/texmf-dist/tex/generic/oberdiek/iflang.sty @@ -25,7 +25,8 @@ %% This work consists of the main source file iflang.dtx %% and the derived files %% iflang.sty, iflang.pdf, iflang.ins, iflang.drv, -%% iflang-test1.tex, iflang-test2.tex, iflang-test3.tex. +%% iflang-test1.tex, iflang-test2.tex, iflang-test3.tex, +%% iflang-test4.tex, iflang-test5.tex. %% \begingroup \catcode44 12 % , @@ -79,20 +80,26 @@ \fi \expandafter\x\csname ver@iflang.sty\endcsname \ProvidesPackage{iflang}% - [2007/04/26 v1.3 Language checks (HO)] -\expandafter\edef\csname IfLang@endinput\endcsname{% - \catcode39 \the\catcode39\relax % ' - \catcode40 \the\catcode40\relax % ( - \catcode41 \the\catcode41\relax % ) - \catcode61 \the\catcode61\relax % = - \catcode64 \the\catcode64\relax % @ - \noexpand\endinput + [2007/09/09 v1.4 Language checks (HO)] +\expandafter\edef\csname IfLang@AtEnd\endcsname{% + \catcode64 \the\catcode64\relax } -\catcode39 12\relax % ' -\catcode40 12\relax % ( -\catcode41 12\relax % ) -\catcode61 12\relax % = -\catcode64 11\relax % @ +\catcode64 11 % @ +\def\TMP@EnsureCode#1#2{% + \edef\IfLang@AtEnd{% + \IfLang@AtEnd + \catcode#1 \the\catcode#1\relax + }% + \catcode#1 #2\relax +} +\TMP@EnsureCode{39}{12}% ' +\TMP@EnsureCode{40}{12}% ( +\TMP@EnsureCode{41}{12}% ) +\TMP@EnsureCode{44}{12}% , +\TMP@EnsureCode{46}{12}% . +\TMP@EnsureCode{47}{12}% / +\TMP@EnsureCode{58}{12}% : +\TMP@EnsureCode{61}{12}% = \expandafter\ifx\csname @firstoftwo\endcsname\relax \long\def\@firstoftwo#1#2{#1}% \fi @@ -135,7 +142,7 @@ \expandafter\ifx\csname RequirePackage\endcsname\relax \input infwarerr.sty\relax \else - \RequirePackage{infwarerr}% + \RequirePackage{infwarerr}[2007/09/09]% \fi \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname uselanguage\endcsname\relax @@ -227,7 +234,7 @@ }% \def\IfLanguageName#1{% \ifnum\IfLang@IfDefined{languagename}{% - \if\expandafter\IfLang@strequal\expandafter% + \if\expandafter\IfLang@StrEqual\expandafter% {\languagename}{#1}% 0% \else @@ -261,7 +268,7 @@ }% }% \fi -\IfLang@endinput +\IfLang@AtEnd \endinput %% %% End of file `iflang.sty'. |