diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/base/ifthen.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/base/ifthen.dtx | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/Master/texmf-dist/source/latex/base/ifthen.dtx b/Master/texmf-dist/source/latex/base/ifthen.dtx index acb5cf19670..d36042990d4 100644 --- a/Master/texmf-dist/source/latex/base/ifthen.dtx +++ b/Master/texmf-dist/source/latex/base/ifthen.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright (C) 1993-2021 +% Copyright (C) 1993-2022 % The LaTeX Project and any individual authors listed elsewhere % in this file. % @@ -42,7 +42,7 @@ %<driver>\ProvidesFile{ifthen.drv} % \fi % \ProvidesFile{ifthen.dtx} - [2020/11/24 v1.1c Standard LaTeX ifthen package (DPC)] + [2022/04/13 v1.1d Standard LaTeX ifthen package (DPC)] % % \iffalse %<*driver> @@ -80,6 +80,7 @@ % \changes{v1.0k}{1995/04/25}{Fix `driver' docstrip guards.} % \changes{v1.0n}{1997/11/03}{Documentation fix.} % \changes{v1.0o}{1998/08/17}{Documentation fix.} +% \changes{v1.1d}{2022/04/13}{Make reference command locally expandable.} % % \section{Introduction} % @@ -164,7 +165,7 @@ % With \meta{test} as above, repeatedly executes \meta{while clause} % while the test remains true. % -% \StopEventually{} +% \MaybeStop{} % % \section{The Implementation} % @@ -263,6 +264,14 @@ % macros expanding to |T| or |F| has been completely replaced by a % simpler system using |\iftrue|, which furthermore allows lazy % evaluation on the second pass. +% With a LaTeX 2022/06/01 we have to ensure that |\pageref| is expandable. +% \begin{macrocode} +\@ifl@t@r\fmtversion{2022/06/01} + {\def\TE@ref@exp{\let\pageref\@kernel@pageref@exp + \let\ref\@kernel@ref@exp}} + {\def\TE@ref@exp{\def\@setref##1##2##3{% + \ifx##1\relax\z@\else\expandafter##2##1\fi}}} +% \end{macrocode} % \begin{macrocode} \long\def\ifthenelse#1{% % \end{macrocode} @@ -295,11 +304,11 @@ % \changes{v1.0l}{1996/03/22} % {Use \cs{begingroup} not \cs{bgroup} for latex/2105} % \changes{v1.1a}{1999/01/07}{\cs{isundefined} added for /2824} +% \changes{v1.1d}{2022/04/13}{changed method to make \cs{pageref} and \cs{ref} locally expandable.} % \begin{macrocode} \begingroup \let\protect\@unexpandable@protect - \def\@setref##1##2##3{% - \ifx##1\relax\z@\else\expandafter##2##1\fi}% + \TE@ref@exp \def\value##1{\the\csname c@##1\endcsname}% \let\equal\TE@equal \let\(\TE@lparen \let\)\TE@rparen \let\isodd\TE@odd \let\lengthtest\TE@length |