diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/base/ifthen.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/base/ifthen.dtx | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/latex/base/ifthen.dtx b/Master/texmf-dist/source/latex/base/ifthen.dtx index ef7d8ab3987..0bbe3612115 100644 --- a/Master/texmf-dist/source/latex/base/ifthen.dtx +++ b/Master/texmf-dist/source/latex/base/ifthen.dtx @@ -30,7 +30,7 @@ %% %% File `ifthen.dtx'. %% Copyright (C) 1991 by Leslie Lamport -%% Copyright (C) 1994-2001 LaTeX project, David Carlisle +%% Copyright (C) 1994-2024 LaTeX project, David Carlisle %% all rights reserved. %% % @@ -42,7 +42,7 @@ %<driver>\ProvidesFile{ifthen.drv} % \fi % \ProvidesFile{ifthen.dtx} - [2022/04/13 v1.1d Standard LaTeX ifthen package (DPC)] + [2024/03/16 v1.1e Standard LaTeX ifthen package (DPC)] % % \iffalse %<*driver> @@ -273,15 +273,35 @@ \ifx##1\relax\z@\else\expandafter##2##1\fi}}} % \end{macrocode} % \begin{macrocode} +\begingroup +\lccode`\~`\> % +\catcode`\+\active +\lccode`\+`\< % +\catcode`\!\active +\lccode`\!`\= % +\lowercase{\endgroup +% \end{macrocode} +% \begin{macrocode} +\def\TE@repl@active{% + \TE@repl~>% + \TE@repl+<% + \TE@repl!=% +} +% \end{macrocode} +% \begin{macrocode} \long\def\ifthenelse#1{% % \end{macrocode} % \changes{v1.0h}{1994/05/14}{Use \cs{TE@repl}} +% \changes{v1.1e}{2024/03/16}{replace active \cs{ifnum} syntax} % \begin{macrocode} \toks@{#1}% \TE@repl\or\TE@or \TE@repl\and\TE@and \TE@repl\not\TE@neg % \end{macrocode} +% \begin{macrocode} + \TE@repl@active +% \end{macrocode} % % \changes{v1.1c}{2001/05/25}{Added \cs{AND}, \cs{OR} and \cs{NOT} as % boolean operators as alternative to the lower case versions @@ -353,7 +373,10 @@ \expandafter\@firstoftwo \else \expandafter\@secondoftwo - \fi} + \fi}% +% \end{macrocode} +% \begin{macrocode} +} % \end{macrocode} % \end{macro} % |