summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/caption/fallback/v3.4/caption.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/caption/fallback/v3.4/caption.dtx')
-rw-r--r--macros/latex/contrib/caption/fallback/v3.4/caption.dtx13
1 files changed, 7 insertions, 6 deletions
diff --git a/macros/latex/contrib/caption/fallback/v3.4/caption.dtx b/macros/latex/contrib/caption/fallback/v3.4/caption.dtx
index baab32006e..8f65111a44 100644
--- a/macros/latex/contrib/caption/fallback/v3.4/caption.dtx
+++ b/macros/latex/contrib/caption/fallback/v3.4/caption.dtx
@@ -2,7 +2,7 @@
%
% This is file `caption.dtx'.
%
-% Copyright (C) 1994-2020 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
+% Copyright (C) 1994-2023 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
%
% --------------------------------------------------------------------------
%
@@ -28,7 +28,7 @@
% caption-deu.tex, caption-eng.tex, caption-rus.tex.
%
% \fi
-% \CheckSum{2986}
+% \CheckSum{2988}
%
% \iffalse
%<*driver>
@@ -218,7 +218,7 @@
%
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{caption}[2022/07/10 v3.4o Customizing captions (AR)]
+\ProvidesPackage{caption}[2023/08/05 v3.4p Customizing captions (AR)]
% \end{macrocode}
%
% \section{Loading the kernel}
@@ -1868,13 +1868,14 @@
% \end{macro}
%
% \begin{macro}{\caption@gettitle}
-% \changes{v3.1}{2007/05/05}{This macro and its usage added}
+% \changes{v3.1l}{2010/01/09}{This macro and its usage added to adapt the definition of \cs{@currentlabelname} to recent versions of \package{nameref}}
+% \changes{v3.4p}{2023/08/05}{Support for older versions of \package{nameref} revised to make it compatible with \LaTeX\ 2023-06-01}
% This one is needed for support of the \package{nameref} package.
% \begin{macrocode}
\newcommand\caption@gettitle[1]{%
\caption@ifdefined\NR@gettitle
- {\NR@gettitle{#1}}%
- {\def\@currentlabelname{#1}}}
+ {\NR@gettitle{#1}}% % support for recent versions of nameref package
+ {\caption@ifdefined\NR@sect{\def\@currentlabelname{#1}}{}}} % support for older versions of nameref package
% \end{macrocode}
% \end{macro}
%