summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/caption
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/caption')
-rw-r--r--macros/latex/contrib/caption/README28
-rw-r--r--macros/latex/contrib/caption/caption-koma.dtx51
-rw-r--r--macros/latex/contrib/caption/caption-memoir.dtx28
-rw-r--r--macros/latex/contrib/caption/caption.dtx26
-rw-r--r--macros/latex/contrib/caption/caption3.dtx9
-rw-r--r--macros/latex/contrib/caption/fallback/v3.1/caption.dtx13
-rw-r--r--macros/latex/contrib/caption/fallback/v3.2/caption.dtx13
-rw-r--r--macros/latex/contrib/caption/fallback/v3.3/caption.dtx13
-rw-r--r--macros/latex/contrib/caption/fallback/v3.4/caption.dtx13
-rw-r--r--macros/latex/contrib/caption/fallback/v3.5/caption.dtx13
-rw-r--r--macros/latex/contrib/caption/subcaption.dtx6
-rw-r--r--macros/latex/contrib/caption/subcaption.pdfbin229241 -> 230920 bytes
12 files changed, 130 insertions, 83 deletions
diff --git a/macros/latex/contrib/caption/README b/macros/latex/contrib/caption/README
index 508a9a4d24..1679cef805 100644
--- a/macros/latex/contrib/caption/README
+++ b/macros/latex/contrib/caption/README
@@ -1,7 +1,7 @@
==========================================================================
The `caption' package bundle
-Release 2023-07-31
+Release 2023-09-08
Copyright (C) 1994-2023 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
License: LPPL = LaTeX Project Public Licence
@@ -10,15 +10,23 @@ Maintenance Status: maintained (by Axel Sommerfeldt)
Home page:
https://gitlab.com/axelsommerfeldt/caption
-Important note:
- The packages offered by this bundle are incompatible to the most recent
- LaTeX release (2023/06/01), therefore I wouldn't use them.
- But if the goal is compiling already existing documents which are using
- one or more of them, please add
- \RequirePackage[2022/11/01]{latexrelease}
- to your document file, before the usage of \documentclass.
- One user has reported that including the `hyperref` package has helped,
- so you could try this as an alternative.
+If you need help for installation please visit:
+ https://texfaq.org/FAQ-inst-miktexstar
+ https://texfaq.org/FAQ-installthings
+ https://texfaq.org/FAQ-privinst
+
+If you need help using these packages please visit:
+ https://latex.org/forum/
+ https://topanswers.xyz/tex
+ https://tex.stackexchange.com/
+ https://golatex.de/ (German)
+ https://texwelt.de/ (German)
+
+If you think you may have found a bug in these packages,
+or want to report a suggestion for improvement, please either visit
+ https://gitlab.com/axelsommerfeldt/caption/issues
+or send an e-mail to
+ axel.sommerfeldt@f-m.fm
--------------------------------------------------------------------------
diff --git a/macros/latex/contrib/caption/caption-koma.dtx b/macros/latex/contrib/caption/caption-koma.dtx
index 040692b453..87f15145c2 100644
--- a/macros/latex/contrib/caption/caption-koma.dtx
+++ b/macros/latex/contrib/caption/caption-koma.dtx
@@ -31,7 +31,7 @@
%
% \fi
%
-% \CheckSum{255}
+% \CheckSum{262}
%
% \iffalse
%<*driver>
@@ -169,7 +169,7 @@
%
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesFile{caption-koma.sto}[2022/12/27 v2.0c Adaption of the caption package to the KOMA-Script document classes (AR)]
+\ProvidesFile{caption-koma.sto}[2023/09/08 v2.0e Adaption of the caption package to the KOMA-Script document classes (AR)]
% \end{macrocode}
%
% \section{Margin or width}
@@ -284,25 +284,32 @@
%
% \begin{macro}{\ifonelinecaptions}
% \changes{v1.1g}{2008/03/01}{\cs{def} changed to \cs{g@addto@macro}}
-% Patch |\onelinecaptionstrue| and |onelinecaptionsfalse| so they will set the corresponding \pkg{caption3} setting, too.
+% \changes{v2.0d}{2023/09/08}{Re-written using \cs{DeclareCaptionSinglelinecheck} and \cs{SetCaptionDefault}}
+% Define an own single-line-check which depends on |\ifonelinecaptions| offered by \KOMAScript.
% \begin{macrocode}
-\g@addto@macro\onelinecaptionstrue{\caption@setsinglelinecheck{true}}%
-\g@addto@macro\onelinecaptionsfalse{\caption@setsinglelinecheck{false}}%
+\DeclareCaptionSinglelinecheck{koma}{%
+ \ifonelinecaptions
+ \expandafter\@firstoftwo
+ \else
+ \expandafter\@secondoftwo
+ \fi}
% \end{macrocode}
+% Make this new single-line-check the default one.
% \begin{macrocode}
-\ifonelinecaptions
- \onelinecaptionstrue
-\else
- \onelinecaptionsfalse
-\fi
+\SetCaptionDefault{singlelinecheck}{koma}
+% \end{macrocode}
+% Patch |\onelinecaptionstrue| and |onelinecaptionsfalse| so they will set the corresponding \pkg{caption3} setting, too.
+% \begin{macrocode}
+\g@addto@macro\onelinecaptionstrue{\caption@setsinglelinecheck{koma}}
+\g@addto@macro\onelinecaptionsfalse{\caption@setsinglelinecheck{koma}}
% \end{macrocode}
% \end{macro}
%
% \section{Format}
%
-% The `default' caption format was taken from \KOMAScript\ \cs{@makecaption} and adapted.
+% The `koma' caption format was taken from \KOMAScript\ \cs{@makecaption} and adapted.
% \begin{macrocode}
-\DeclareCaptionFormat{default}[#1#2#3\par]{%
+\DeclareCaptionFormat{koma}[#1#2#3\par]{%
\ifdofullc@p
\caption@useformat{hang}{#1}{#2}{#3}%
\else
@@ -315,19 +322,29 @@
\fi\fi
#3\par
\fi}
+% \end{macrocode}
+% \begin{macrocode}
+\SetCaptionDefault{format}{koma}
+% \end{macrocode}
%
% \section{Label format}
%
-% The `fallback' caption label format maps to `autodot'.
% \begin{macrocode}
-\SetCaptionFallback{labelformat}{autodot}
+\DeclareCaptionLabelFormat{koma}{\bothIfFirst{#1}{\nobreakspace}#2\autodot}
+% \end{macrocode}
+% The `fallback' caption label format maps to `koma'.
+% \begin{macrocode}
+\SetCaptionFallback{labelformat}{koma}
% \end{macrocode}
%
% \section{Label separator}
%
% The `default' caption label separator maps to \cs{captionformat}.
% \begin{macrocode}
-\DeclareCaptionLabelSeparator{default}{\captionformat}
+\DeclareCaptionLabelSeparator{koma}{\captionformat}
+% \end{macrocode}
+% \begin{macrocode}
+\SetCaptionDefault{labelseparator}{koma}
% \end{macrocode}
%
% \section{Fonts}
@@ -396,7 +413,7 @@
% \changes{v1.5}{2013/02/15}{Support of \cs{if@figurecaptionabove} added}
% Patch |\@figurecaptionabovetrue| and |\@figurecaptionabovefalse| so they will set the \pkg{caption3} position setting, too.
% \begin{macrocode}
-\caption@ifdefined\@figurecaptionabovetrue{%
+\@ifundefined{@figurecaptionabovetrue}{}{%
\g@addto@macro\@figurecaptionabovetrue{\captionsetup*[figure]{position=t}}%
\g@addto@macro\@figurecaptionabovefalse{\captionsetup*[figure]{position=b}}%
% \end{macrocode}
@@ -405,7 +422,7 @@
\@figurecaptionabovetrue
\else
\@figurecaptionabovefalse
- \fi}{}
+ \fi}
% \end{macrocode}
% \end{macro}
%
diff --git a/macros/latex/contrib/caption/caption-memoir.dtx b/macros/latex/contrib/caption/caption-memoir.dtx
index 9b76fbb64e..2c1901bdf4 100644
--- a/macros/latex/contrib/caption/caption-memoir.dtx
+++ b/macros/latex/contrib/caption/caption-memoir.dtx
@@ -31,7 +31,7 @@
%
% \fi
%
-% \CheckSum{69}
+% \CheckSum{90}
%
% \iffalse
%<*driver>
@@ -155,7 +155,7 @@
%
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesFile{caption-memoir.sto}[2022/03/02 v2.2b Adaption of the caption package to the memoir document class (AR)]
+\ProvidesFile{caption-memoir.sto}[2023/09/08 v2.2c Adaption of the caption package to the memoir document class (AR)]
% \end{macrocode}
%
% \section{Adaptions already included in the caption package}
@@ -277,6 +277,30 @@
\fi}}%
% \end{macrocode}
%
+% \section{Side captions}
+%
+% \begin{macro}{\endsidecaption}
+% \changes{v2.2c}{2023/09/08}{This re-definition added}
+% The \env{sidecaption} environment uses |\ref|\-|step|\-|counter| (if \pkg{hyperref} is not loaded)
+% or |\H@ref|\-|step|\-|counter| plus |\hyper@make|\-|current| (if \pkg{hyperref} is loaded).
+% We need to patch it so |\caption@ref|\-|step|\-|counter| is used instead to get a proper hyperlink reference.
+% Since the definition could be overwritten by |memhfixc.sty|, we need to define it using |\At|\-|Begin|\-|Document|.
+% \begin{macrocode}
+\AtBeginDocument{\renewcommand*\endsidecaption{%
+ \m@mscapend@fbox
+ \caption@refstepcounter\@captype
+ \m@mscaplabel
+ \csname m@mscapcheckside\endcsname %<--- added 2012/08/19
+ \begin{lrbox}{\m@mscap@capbox}%
+ \begin{minipage}[c]{\sidecapwidth}%
+ \sidecapstyle
+ \@caption\@captype[\m@mscap@fortoc]{\m@mscap@forcap}
+ \end{minipage}%
+ \end{lrbox}%
+ \m@mscapopboxes}}
+% \end{macrocode}
+% \end{macro}
+%
% \section{TODO}
%
% \begin{macrocode}
diff --git a/macros/latex/contrib/caption/caption.dtx b/macros/latex/contrib/caption/caption.dtx
index 8315f780b3..6d1dc52834 100644
--- a/macros/latex/contrib/caption/caption.dtx
+++ b/macros/latex/contrib/caption/caption.dtx
@@ -31,12 +31,12 @@
%
% \fi
%
-% \CheckSum{2923}
+% \CheckSum{2925}
%
% \iffalse
%<*driver>
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesFile{caption.drv}[2023/07/10 v3.6 The caption package]
+\ProvidesFile{caption.drv}[2023/09/07 v3.6 The caption package]
%\errorcontextlines=3
%
\documentclass{captiondoc}
@@ -3619,19 +3619,6 @@
% package only \emph{one} caption can be placed. (This is due implementation design.)
%
% \Message
-% |Option clash for package caption.|
-% \Or[but sometimes also]
-% |Missing \begin{document}.|
-% \Description
-% \Thispackage\ has already been loaded by some other \LaTeX\ package,
-% so you can't do that again specifying different options.
-% A candidate causing this could be the \pkg{subfig} package; if this is
-% the case, please load \thispackage\ \emph{before} the \pkg{subfig}
-% package or specify the option |caption=|\x|false| while loading the
-% \pkg{subfig} package.
-% \par\See{the \pkg{subfig} package\cite{subfig} documentation}
-%
-% \Message
% |Paragraph ended before \caption@makecurrent was complete.|
% \Or
% |Paragraph ended before \caption@prepareanchor was complete.|
@@ -4521,7 +4508,7 @@
%
% Identify the current version of the package.
% \begin{macrocode}
-\ProvidesPackage{caption}[2023/07/31 v3.6n Customizing captions (AR)]
+\ProvidesPackage{caption}[2023/08/05 v3.6o Customizing captions (AR)]
% \end{macrocode}
%
% \subsection{Loading the kernel}
@@ -6212,13 +6199,14 @@
% \end{macro}
%
% \begin{macro}{\caption@gettitle}
-% \changes{v3.1}{2007/05/05}{This macro definition added}
+% \changes{v3.1l}{2010/01/09}{This macro and its usage added to adapt the definition of \cs{@currentlabelname} to recent versions of \pkg{nameref}}
+% \changes{v3.6o}{2023/08/05}{Support for older versions of \pkg{nameref} revised to make it compatible with \LaTeX\ 2023-06-01}
% This one is needed for support of the \pkg{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}
%
diff --git a/macros/latex/contrib/caption/caption3.dtx b/macros/latex/contrib/caption/caption3.dtx
index be2a46ec67..33bb027ceb 100644
--- a/macros/latex/contrib/caption/caption3.dtx
+++ b/macros/latex/contrib/caption/caption3.dtx
@@ -31,7 +31,7 @@
%
% \fi
%
-% \CheckSum{3853}
+% \CheckSum{3855}
%
% \iffalse
%<*driver>
@@ -1178,6 +1178,11 @@
\@onlypreamble\caption@SetupOptions@list
% \end{macrocode}
% \begin{macrocode}
+%% Unfortunately we have to patch internal \LaTeX\ code here
+%% to get rid of unnecessary ``Option clash'' error messages.
+%% I have asked Frank Mittelbach and David Carlisle in 2018
+%% and have asked Frank again in 2020 for a proper interface instead of
+%% this dirty hack, but my requests got declined.
\let\caption@onefilewithoptions\@onefilewithoptions
\def\@onefilewithoptions#1[#2]{%
\begingroup
@@ -2118,7 +2123,7 @@
\DeclareCaptionLabelFormat{simple}{\bothIfFirst{#1}{\nobreakspace}#2}
\DeclareCaptionLabelFormat{parens}{\bothIfFirst{#1}{\nobreakspace}(#2)}
\DeclareCaptionLabelFormat{brace}{\bothIfFirst{#1}{\nobreakspace}#2)}
-\DeclareCaptionLabelFormat{autodot}{\bothIfFirst{#1}{\nobreakspace}#2\autodot}
+\DeclareCaptionLabelFormat{autodot}{\bothIfFirst{#1}{\nobreakspace}#2\autodot} % obsolete, use `koma' instead
\DeclareCaptionLabelFormat{unnumbered}{#1}
% \end{macrocode}
%
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}
%
diff --git a/macros/latex/contrib/caption/fallback/v3.2/caption.dtx b/macros/latex/contrib/caption/fallback/v3.2/caption.dtx
index e2d7d08ea7..9e6ef0d5bc 100644
--- a/macros/latex/contrib/caption/fallback/v3.2/caption.dtx
+++ b/macros/latex/contrib/caption/fallback/v3.2/caption.dtx
@@ -2,7 +2,7 @@
%
% This is file `caption.dtx'.
%
-% Copyright (C) 1994-2011 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
+% Copyright (C) 1994-2023 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
%
% --------------------------------------------------------------------------
%
@@ -25,7 +25,7 @@
% and the user manuals caption-deu.tex, caption-eng.tex, and caption-rus.tex.
%
% \fi
-% \CheckSum{3535}
+% \CheckSum{3537}
%
% \iffalse
%<*driver>
@@ -220,7 +220,7 @@
%
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{caption}[2022/07/10 v3.2f Customizing captions (AR)]
+\ProvidesPackage{caption}[2023/08/05 v3.2g Customizing captions (AR)]
%\@ifundefined{PackageRedefines}{}{\PackageRedefines{caption}{caption}}
% \end{macrocode}
%
@@ -2036,13 +2036,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.2g}{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@ifundefined\NR@gettitle
- {\def\@currentlabelname{#1}}%
- {\NR@gettitle{#1}}}
+ {\caption@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}
%
diff --git a/macros/latex/contrib/caption/fallback/v3.3/caption.dtx b/macros/latex/contrib/caption/fallback/v3.3/caption.dtx
index b311022734..1592a881b3 100644
--- a/macros/latex/contrib/caption/fallback/v3.3/caption.dtx
+++ b/macros/latex/contrib/caption/fallback/v3.3/caption.dtx
@@ -2,7 +2,7 @@
%
% This is file `caption.dtx'.
%
-% Copyright (C) 1994-2019 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
+% Copyright (C) 1994-2023 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
%
% --------------------------------------------------------------------------
%
@@ -25,7 +25,7 @@
% and the user manuals caption-deu.tex, caption-eng.tex, and caption-rus.tex.
%
% \fi
-% \CheckSum{3695}
+% \CheckSum{3697}
%
% \iffalse
%<*driver>
@@ -220,7 +220,7 @@
%
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{caption}[2022/07/10 v3.3e Customizing captions (AR)]
+\ProvidesPackage{caption}[2023/08/05 v3.3f Customizing captions (AR)]
% \end{macrocode}
%
% \subsection{Loading the kernel}
@@ -2385,13 +2385,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.3f}{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@ifundefined\NR@gettitle
- {\def\@currentlabelname{#1}}%
- {\NR@gettitle{#1}}}
+ {\caption@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}
%
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}
%
diff --git a/macros/latex/contrib/caption/fallback/v3.5/caption.dtx b/macros/latex/contrib/caption/fallback/v3.5/caption.dtx
index f5d5569ed8..3d16ea5647 100644
--- a/macros/latex/contrib/caption/fallback/v3.5/caption.dtx
+++ b/macros/latex/contrib/caption/fallback/v3.5/caption.dtx
@@ -2,7 +2,7 @@
%
% This is file `caption.dtx'.
%
-% Copyright (C) 1994-2022 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
+% Copyright (C) 1994-2023 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
%
% --------------------------------------------------------------------------
%
@@ -32,7 +32,7 @@
% caption-deu.tex, caption-eng.tex, caption-rus.tex.
%
% \fi
-% \CheckSum{2703}
+% \CheckSum{2705}
%
% \iffalse
%<*driver>
@@ -241,7 +241,7 @@
%
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{caption}[2022/07/10 v3.5i Customizing captions (AR)]
+\ProvidesPackage{caption}[2023/08/05 v3.5j Customizing captions (AR)]
% \end{macrocode}
%
% \section{Loading the kernel}
@@ -1708,13 +1708,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.5j}{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}
%
diff --git a/macros/latex/contrib/caption/subcaption.dtx b/macros/latex/contrib/caption/subcaption.dtx
index ac8c14a4dc..72c53bd877 100644
--- a/macros/latex/contrib/caption/subcaption.dtx
+++ b/macros/latex/contrib/caption/subcaption.dtx
@@ -36,7 +36,7 @@
% \iffalse
%<*driver>
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesFile{subcaption.drv}[2023/07/10 v1.6 Adds a sub-caption feature to the caption package]
+\ProvidesFile{subcaption.drv}[2023/08/13 v1.6 Adds a sub-caption feature to the caption package]
%\errorcontextlines=3
%
\documentclass{captiondoc}
@@ -834,7 +834,7 @@
% | |\textcolor{blue}{\cs{phantomcaption}}|\label{cat}|\\
% | \includegraphics{elephant_with_b}|\\
% | |\textcolor{blue}{\cs{phantomcaption}}|\label{elephant}|\\
-% | \end{subcaptionblock}|\\
+% | \end{subcaptiongroup}|\\
% | \captionsetup{subrefformat=parens}|\\
% | \caption{Two animals: \subref{cat} a cat,|\\
% | and \subref{elephant} an elephant}|\\
@@ -888,7 +888,7 @@
% | \includegraphics{elephant_with_b}|\\
% | |\textcolor{blue}{\cs{captionlistentry}\csmarg{An elephant}}\\
% | \label{elephant}|\\
-% | \end{subcaptionblock}|\\
+% | \end{subcaptiongroup}|\\
% | \captionsetup{subrefformat=parens}|\\
% | \caption{Two animals: \subref{cat} a cat,|\\
% | and \subref{elephant} an elephant}|\\
diff --git a/macros/latex/contrib/caption/subcaption.pdf b/macros/latex/contrib/caption/subcaption.pdf
index eaafdf018a..076c6bdf27 100644
--- a/macros/latex/contrib/caption/subcaption.pdf
+++ b/macros/latex/contrib/caption/subcaption.pdf
Binary files differ