diff options
Diffstat (limited to 'macros/latex/contrib/hyperref/nameref.dtx')
-rw-r--r-- | macros/latex/contrib/hyperref/nameref.dtx | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/macros/latex/contrib/hyperref/nameref.dtx b/macros/latex/contrib/hyperref/nameref.dtx index 861af305a0..ca0f46b434 100644 --- a/macros/latex/contrib/hyperref/nameref.dtx +++ b/macros/latex/contrib/hyperref/nameref.dtx @@ -33,7 +33,7 @@ %<driver>\ProvidesFile{nameref.drv} % \fi % \ProvidesFile{nameref.dtx} - [2023-11-09 v2.55 Cross-referencing by name of section]% + [2023-11-26 v2.56 Cross-referencing by name of section]% % % % \iffalse @@ -112,14 +112,11 @@ % % \item \cs{@part}, \cs{@spart}, \cs{@chapter}, \cs{@schapter}: % command to store the title added -% \item \cs{ttl@sect@i} (from the \textsf{titlesec} package): -% command to store the title added % \end{itemize} % % All the patches excepted the last are disabled if the command % \cs{NR@nopatch@sectioning} is defined (the actual definition is irrelevant, only -% existence is tested. The titlesec patch is disabled if -% \cs{NR@nopatch@titlesec} is defined. +% existence is tested. % This currently only suppress the actual patches, the counter, % \cs{Sectionformat} and also the internal copies \cs{NR@sect} etc are still % defined. @@ -215,9 +212,14 @@ % \begin{macrocode} \RequirePackage{refcount}[2006/02/12] \RequirePackage{gettitlestring}[2009/12/18] -\RequirePackage{ltxcmds}[2009/12/12] % \end{macrocode} -% + +% \begin{macrocode} +\ExplSyntaxOn +\let\NR@GlobalAppendToMacro\tl_gput_right:Nn +\ExplSyntaxOff + +% \end{macrocode} % In formats older than 2023-06-01 % we redefine |\label| so that it also writes the name of the % current section to the .aux file; if the name ends in a dot, @@ -226,7 +228,7 @@ % used for cross-ref name, and file). % \begin{macro}{\NR@strip@period} % \begin{macrocode} -\def\NR@strip@period#1.\ltx@empty#2\@nil{#1} +\def\NR@strip@period#1.\@empty#2\@nil{#1} % \end{macrocode} % \end{macro} % @@ -244,7 +246,7 @@ \@onelevel@sanitize\@currentlabelname \edef\@currentlabelname{% \expandafter\NR@strip@period\@currentlabelname - \ltx@empty.\ltx@empty\@nil + \@empty.\@empty\@nil }% } % \end{macrocode} @@ -279,7 +281,7 @@ % and also in hyperref. % \begin{macrocode} \providecommand*{\label@hook}{} -\ltx@GlobalAppendToMacro{\label@hook}{% +\NR@GlobalAppendToMacro{\label@hook}{% \NR@sanitize@labelname } \@ifl@t@r\fmtversion{2023-06-01} @@ -518,7 +520,7 @@ % % Environment `description'. % \begin{macrocode} - \ltx@IfUndefined{descriptionlabel}{% + \@ifundefined{descriptionlabel}{% }{% \@ifundefined{NR@nopatch@lists} {\let\NRorg@descriptionlabel\descriptionlabel @@ -535,7 +537,7 @@ % % \begin{macrocode} \@ifundefined{NR@nopatch@theorem}{% - \ltx@IfUndefined{@opargbegintheorem}{}{% + \@ifundefined{@opargbegintheorem}{}{% \let\NRorg@opargbegintheorem\@opargbegintheorem \def\@opargbegintheorem#1#2#3{% \NR@gettitle{#3}% |