[latex3-commits] [git/LaTeX3-latex3-latex2e] starredrefs: Revert "Use expl3 syntax" (09ef409d)

Ulrike Fischer fischer at troubleshooting-tex.de
Sat Apr 16 09:48:36 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : starredrefs
Link       : https://github.com/latex3/latex2e/commit/09ef409d8071131dcf580ed7f5ffced5bbcb0186

>---------------------------------------------------------------

commit 09ef409d8071131dcf580ed7f5ffced5bbcb0186
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Fri Apr 15 21:34:40 2022 -0300

    Revert "Use expl3 syntax"
    
    This reverts commit 42fdaeec53fb390cad7ca1e0a5e1701c8d50306f.


>---------------------------------------------------------------

09ef409d8071131dcf580ed7f5ffced5bbcb0186
 base/ltxref.dtx | 18 ++++--------------
 1 file changed, 4 insertions(+), 14 deletions(-)

diff --git a/base/ltxref.dtx b/base/ltxref.dtx
index afd9f47d..596eb2fd 100644
--- a/base/ltxref.dtx
+++ b/base/ltxref.dtx
@@ -258,20 +258,10 @@
 % As the commands are now protected we also need expandable versions for use
 % in \cs{ifthenelse}:
 %    \begin{macrocode}
-\ExplSyntaxOn
-\cs_new:Npn \@kernel at pageref@exp #1
-  {
-    \cs_if_exist:cTF {r@#1}
-      { \exp_last_unbraced:Nv \use_ii:nn {r@#1} }
-      { 0 }
-  }
-\cs_new:Npn \@kernel at ref@exp #1
-  {
-    \cs_if_exist:cTF {r@#1}
-      { \exp_last_unbraced:Nv \use_i:nn {r@#1} }
-      { 0 }
-  }
-\ExplSyntaxOff
+\def\@kernel at pageref@exp#1{\csname cs_if_exist:cTF\endcsname
+   {r@#1}{\csname tl_item:cn\endcsname{r@#1}{2}}{0}}
+\def\@kernel at ref@exp#1{\csname cs_if_exist:cTF\endcsname
+   {r@#1}{\csname tl_item:cn\endcsname{r@#1}{1}}{0}}
 %    \end{macrocode}
 %    \begin{macrocode}
 %</2ekernel|latexrelease>





More information about the latex3-commits mailing list.