summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/caption/fallback/v3.1/caption.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/caption/fallback/v3.1/caption.dtx')
-rw-r--r--macros/latex/contrib/caption/fallback/v3.1/caption.dtx13
1 files changed, 7 insertions, 6 deletions
diff --git a/macros/latex/contrib/caption/fallback/v3.1/caption.dtx b/macros/latex/contrib/caption/fallback/v3.1/caption.dtx
index 533adf3449..64bd56c539 100644
--- a/macros/latex/contrib/caption/fallback/v3.1/caption.dtx
+++ b/macros/latex/contrib/caption/fallback/v3.1/caption.dtx
@@ -2,7 +2,7 @@
%
% This is file `caption.dtx'.
%
-% Copyright (C) 1994-2010 Axel Sommerfeldt (caption@sommerfee.de)
+% Copyright (C) 1994-2023 Axel Sommerfeldt (caption@sommerfee.de)
%
% --------------------------------------------------------------------------
%
@@ -24,7 +24,7 @@
% user manuals caption-deu.tex, caption-eng.tex, and caption-rus.tex.
%
% \fi
-% \CheckSum{7219}
+% \CheckSum{7220}
%
% \iffalse
%<*driver>
@@ -3757,7 +3757,7 @@
%
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{caption}[2022/07/10 v3.1n Customizing captions (AR)]
+\ProvidesPackage{caption}[2023/08/05 v3.1o Customizing captions (AR)]
%\@ifundefined{PackageRedefines}{}{\PackageRedefines{caption}{caption}}
% \end{macrocode}
%
@@ -4814,13 +4814,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.1o}{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]{%
\@ifundefined{NR@gettitle}%
- {\def\@currentlabelname{#1}}%
- {\NR@gettitle{#1}}}
+ {\@ifundefined{NR@sect}{}{\def\@currentlabelname{#1}}}% support for older versions of nameref package
+ {\NR@gettitle{#1}}} % support for recent versions of nameref package
% \end{macrocode}
% \end{macro}
%