[latex3-commits] [git/LaTeX3-latex3-hyperref] main: add a test for the beamer version (16d0cd9)
Ulrike Fischer
fischer at troubleshooting-tex.de
Tue May 17 11:24:11 CEST 2022
Repository : https://github.com/latex3/hyperref
On branch : main
Link : https://github.com/latex3/hyperref/commit/16d0cd9175033387c71942eab923c18e0bac8851
>---------------------------------------------------------------
commit 16d0cd9175033387c71942eab923c18e0bac8851
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Tue May 17 11:24:11 2022 +0200
add a test for the beamer version
>---------------------------------------------------------------
16d0cd9175033387c71942eab923c18e0bac8851
nameref.dtx | 64 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 34 insertions(+), 30 deletions(-)
diff --git a/nameref.dtx b/nameref.dtx
index edbc1d2..0c2c3b9 100644
--- a/nameref.dtx
+++ b/nameref.dtx
@@ -566,45 +566,49 @@
%
% \begin{macrocode}
\@ifclassloaded{beamer}{%
- \@ifundefined{NR at nopatch@beamer}
+ \@ifclasslater{beamer}{2022-05-17}
+ {}%do nothing
{%
- \def\NR at PatchBeamer#1{%
- \expandafter\let\csname NRorg at beamer@#1\expandafter\endcsname
- \csname beamer@#1\endcsname
- \begingroup
- \edef\x{\endgroup
- \long\def\expandafter\noexpand\csname beamer@#1\endcsname
- [####1]{% hash-ok
- \noexpand\NR at gettitle{####1}%
- \expandafter\noexpand\csname NRorg at beamer@#1\endcsname
- [{####1}]%
+ \@ifundefined{NR at nopatch@beamer}
+ {%
+ \def\NR at PatchBeamer#1{%
+ \expandafter\let\csname NRorg at beamer@#1\expandafter\endcsname
+ \csname beamer@#1\endcsname
+ \begingroup
+ \edef\x{\endgroup
+ \long\def\expandafter\noexpand\csname beamer@#1\endcsname
+ [####1]{% hash-ok
+ \noexpand\NR at gettitle{####1}%
+ \expandafter\noexpand\csname NRorg at beamer@#1\endcsname
+ [{####1}]%
+ }%
}%
- }%
- \x
- }%
- \AddToHook{class/beamer/after}{%
- \NR at PatchBeamer{section}%
- \NR at PatchBeamer{subsection}%
- \NR at PatchBeamer{subsubsection}%
+ \x
+ }%
+ \AddToHook{class/beamer/after}{%
+ \NR at PatchBeamer{section}%
+ \NR at PatchBeamer{subsection}%
+ \NR at PatchBeamer{subsubsection}%
% \end{macrocode}
%
% Theorem names.
% \begin{macrocode}
- \addtobeamertemplate{theorem begin}{%
- \expandafter\NR at gettitle\expandafter{\inserttheoremaddition}%
- }{}%
+ \addtobeamertemplate{theorem begin}{%
+ \expandafter\NR at gettitle\expandafter{\inserttheoremaddition}%
+ }{}%
% \end{macrocode}
% \begin{macrocode}
- \@ifdefinable{\NRorg at beamer@descriptionitem}{%
- \let\NRorg at beamer@descriptionitem\beamer at descriptionitem
- \renewcommand{\beamer at descriptionitem}[1]{%
- \NR at gettitle{#1}%
- \NRorg at beamer@descriptionitem{#1}%
+ \@ifdefinable{\NRorg at beamer@descriptionitem}{%
+ \let\NRorg at beamer@descriptionitem\beamer at descriptionitem
+ \renewcommand{\beamer at descriptionitem}[1]{%
+ \NR at gettitle{#1}%
+ \NRorg at beamer@descriptionitem{#1}%
+ }%
}%
- }%
- }%
- }{}%
-}{}
+ }%Hook
+ }{}%@ifundefined
+ }%class later
+ }{}
% \end{macrocode}
%
% \subsubsection{Theorems}
More information about the latex3-commits
mailing list.