summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-10-01 20:11:11 +0000
committerKarl Berry <karl@freefriends.org>2023-10-01 20:11:11 +0000
commitd4f1baaa0628bf1f27ff54687e54707424ebba7b (patch)
tree68e586893d523dfc50179c5063a0fe9c7409ede8 /Master/texmf-dist
parentf23e2c912dde2844552bcce852da26d62d527b04 (diff)
caption (1oct23)
git-svn-id: svn://tug.org/texlive/trunk@68425 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/caption/README28
-rw-r--r--Master/texmf-dist/doc/latex/caption/subcaption.pdfbin229241 -> 230920 bytes
-rw-r--r--Master/texmf-dist/source/latex/caption/caption-koma.dtx51
-rw-r--r--Master/texmf-dist/source/latex/caption/caption-memoir.dtx28
-rw-r--r--Master/texmf-dist/source/latex/caption/caption.dtx26
-rw-r--r--Master/texmf-dist/source/latex/caption/caption3.dtx9
-rw-r--r--Master/texmf-dist/source/latex/caption/fallback/v3.1/caption.dtx13
-rw-r--r--Master/texmf-dist/source/latex/caption/fallback/v3.2/caption.dtx13
-rw-r--r--Master/texmf-dist/source/latex/caption/fallback/v3.3/caption.dtx13
-rw-r--r--Master/texmf-dist/source/latex/caption/fallback/v3.4/caption.dtx13
-rw-r--r--Master/texmf-dist/source/latex/caption/fallback/v3.5/caption.dtx13
-rw-r--r--Master/texmf-dist/source/latex/caption/subcaption.dtx6
-rw-r--r--Master/texmf-dist/tex/latex/caption/caption-koma.sto33
-rw-r--r--Master/texmf-dist/tex/latex/caption/caption-memoir.sto16
-rw-r--r--Master/texmf-dist/tex/latex/caption/caption.sty6
-rw-r--r--Master/texmf-dist/tex/latex/caption/caption3.sty5
-rw-r--r--Master/texmf-dist/tex/latex/caption/caption_2010-01-09.sty8
-rw-r--r--Master/texmf-dist/tex/latex/caption/caption_2011-11-10.sty8
-rw-r--r--Master/texmf-dist/tex/latex/caption/caption_2019-09-01.sty8
-rw-r--r--Master/texmf-dist/tex/latex/caption/caption_2020-07-29.sty8
-rw-r--r--Master/texmf-dist/tex/latex/caption/caption_2020-10-26.sty8
21 files changed, 191 insertions, 122 deletions
diff --git a/Master/texmf-dist/doc/latex/caption/README b/Master/texmf-dist/doc/latex/caption/README
index 508a9a4d24f..1679cef8059 100644
--- a/Master/texmf-dist/doc/latex/caption/README
+++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/caption/subcaption.pdf b/Master/texmf-dist/doc/latex/caption/subcaption.pdf
index eaafdf018a8..076c6bdf27e 100644
--- a/Master/texmf-dist/doc/latex/caption/subcaption.pdf
+++ b/Master/texmf-dist/doc/latex/caption/subcaption.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/caption/caption-koma.dtx b/Master/texmf-dist/source/latex/caption/caption-koma.dtx
index 040692b453e..87f15145c2e 100644
--- a/Master/texmf-dist/source/latex/caption/caption-koma.dtx
+++ b/Master/texmf-dist/source/latex/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/Master/texmf-dist/source/latex/caption/caption-memoir.dtx b/Master/texmf-dist/source/latex/caption/caption-memoir.dtx
index 9b76fbb64e5..2c1901bdf47 100644
--- a/Master/texmf-dist/source/latex/caption/caption-memoir.dtx
+++ b/Master/texmf-dist/source/latex/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/Master/texmf-dist/source/latex/caption/caption.dtx b/Master/texmf-dist/source/latex/caption/caption.dtx
index 8315f780b3c..6d1dc528342 100644
--- a/Master/texmf-dist/source/latex/caption/caption.dtx
+++ b/Master/texmf-dist/source/latex/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/Master/texmf-dist/source/latex/caption/caption3.dtx b/Master/texmf-dist/source/latex/caption/caption3.dtx
index be2a46ec676..33bb027ceba 100644
--- a/Master/texmf-dist/source/latex/caption/caption3.dtx
+++ b/Master/texmf-dist/source/latex/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/Master/texmf-dist/source/latex/caption/fallback/v3.1/caption.dtx b/Master/texmf-dist/source/latex/caption/fallback/v3.1/caption.dtx
index 533adf34496..64bd56c5395 100644
--- a/Master/texmf-dist/source/latex/caption/fallback/v3.1/caption.dtx
+++ b/Master/texmf-dist/source/latex/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/Master/texmf-dist/source/latex/caption/fallback/v3.2/caption.dtx b/Master/texmf-dist/source/latex/caption/fallback/v3.2/caption.dtx
index e2d7d08ea70..9e6ef0d5bcb 100644
--- a/Master/texmf-dist/source/latex/caption/fallback/v3.2/caption.dtx
+++ b/Master/texmf-dist/source/latex/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/Master/texmf-dist/source/latex/caption/fallback/v3.3/caption.dtx b/Master/texmf-dist/source/latex/caption/fallback/v3.3/caption.dtx
index b3110227347..1592a881b30 100644
--- a/Master/texmf-dist/source/latex/caption/fallback/v3.3/caption.dtx
+++ b/Master/texmf-dist/source/latex/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/Master/texmf-dist/source/latex/caption/fallback/v3.4/caption.dtx b/Master/texmf-dist/source/latex/caption/fallback/v3.4/caption.dtx
index baab32006e7..8f65111a444 100644
--- a/Master/texmf-dist/source/latex/caption/fallback/v3.4/caption.dtx
+++ b/Master/texmf-dist/source/latex/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/Master/texmf-dist/source/latex/caption/fallback/v3.5/caption.dtx b/Master/texmf-dist/source/latex/caption/fallback/v3.5/caption.dtx
index f5d5569ed8b..3d16ea56470 100644
--- a/Master/texmf-dist/source/latex/caption/fallback/v3.5/caption.dtx
+++ b/Master/texmf-dist/source/latex/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/Master/texmf-dist/source/latex/caption/subcaption.dtx b/Master/texmf-dist/source/latex/caption/subcaption.dtx
index ac8c14a4dcf..72c53bd8770 100644
--- a/Master/texmf-dist/source/latex/caption/subcaption.dtx
+++ b/Master/texmf-dist/source/latex/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/Master/texmf-dist/tex/latex/caption/caption-koma.sto b/Master/texmf-dist/tex/latex/caption/caption-koma.sto
index 143b867423e..a79452c1f18 100644
--- a/Master/texmf-dist/tex/latex/caption/caption-koma.sto
+++ b/Master/texmf-dist/tex/latex/caption/caption-koma.sto
@@ -6,7 +6,7 @@
%%
%% caption-koma.dtx (with options: `package')
%%
-%% Copyright (C) 1994-2022 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
+%% Copyright (C) 1994-2023 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
%%
%% https://gitlab.com/axelsommerfeldt/caption
%%
@@ -36,7 +36,7 @@
%% caption-thesis.sto, bicaption.sty, ltcaption.sty, subcaption.sty.
%%
\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)]
\expandafter\let\expandafter\caption@koma@setcapwidth
\csname\string\setcapwidth\endcsname
\@namedef{\string\setcapwidth}[#1]#2{%
@@ -97,14 +97,16 @@
\newcommand*\caption@setcapindent{%
\captionsetup{indent=\ifdim\cap@indent<\z@\z@\else\cap@indent\fi}}
\caption@ifdefined\cap@indent{\caption@setcapindent}{}
-\g@addto@macro\onelinecaptionstrue{\caption@setsinglelinecheck{true}}%
-\g@addto@macro\onelinecaptionsfalse{\caption@setsinglelinecheck{false}}%
-\ifonelinecaptions
- \onelinecaptionstrue
-\else
- \onelinecaptionsfalse
-\fi
-\DeclareCaptionFormat{default}[#1#2#3\par]{%
+\DeclareCaptionSinglelinecheck{koma}{%
+ \ifonelinecaptions
+ \expandafter\@firstoftwo
+ \else
+ \expandafter\@secondoftwo
+ \fi}
+\SetCaptionDefault{singlelinecheck}{koma}
+\g@addto@macro\onelinecaptionstrue{\caption@setsinglelinecheck{koma}}
+\g@addto@macro\onelinecaptionsfalse{\caption@setsinglelinecheck{koma}}
+\DeclareCaptionFormat{koma}[#1#2#3\par]{%
\ifdofullc@p
\caption@useformat{hang}{#1}{#2}{#3}%
\else
@@ -117,8 +119,11 @@
\fi\fi
#3\par
\fi}
-\SetCaptionFallback{labelformat}{autodot}
-\DeclareCaptionLabelSeparator{default}{\captionformat}
+\SetCaptionDefault{format}{koma}
+\DeclareCaptionLabelFormat{koma}{\bothIfFirst{#1}{\nobreakspace}#2\autodot}
+\SetCaptionFallback{labelformat}{koma}
+\DeclareCaptionLabelSeparator{koma}{\captionformat}
+\SetCaptionDefault{labelseparator}{koma}
\DeclareCaptionFont{scr@font}{\scr@fnt@caption}
\DeclareCaptionFont{scr@labelfont}{\scr@fnt@captionlabel}
\SetCaptionDefault{font}{scr@font}
@@ -140,14 +145,14 @@
\else
\@tablecaptionabovefalse
\fi
-\caption@ifdefined\@figurecaptionabovetrue{%
+\@ifundefined{@figurecaptionabovetrue}{}{%
\g@addto@macro\@figurecaptionabovetrue{\captionsetup*[figure]{position=t}}%
\g@addto@macro\@figurecaptionabovefalse{\captionsetup*[figure]{position=b}}%
\if@figurecaptionabove
\@figurecaptionabovetrue
\else
\@figurecaptionabovefalse
- \fi}{}
+ \fi}
\AtCaptionPackage{%
\let\caption@koma@figureposition\KV@caption@figureposition
\DeclareCaptionOption{figureposition}{%
diff --git a/Master/texmf-dist/tex/latex/caption/caption-memoir.sto b/Master/texmf-dist/tex/latex/caption/caption-memoir.sto
index b7746ea5b8c..e9ea84d9bd6 100644
--- a/Master/texmf-dist/tex/latex/caption/caption-memoir.sto
+++ b/Master/texmf-dist/tex/latex/caption/caption-memoir.sto
@@ -6,7 +6,7 @@
%%
%% caption-memoir.dtx (with options: `package')
%%
-%% Copyright (C) 1994-2022 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
+%% Copyright (C) 1994-2023 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
%%
%% https://gitlab.com/axelsommerfeldt/caption
%%
@@ -36,7 +36,7 @@
%% caption-thesis.sto, bicaption.sty, ltcaption.sty, subcaption.sty.
%%
\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)]
\providecommand*\AtCaptionSingleLineCheck{\g@addto@macro\caption@prepareslc} % for caption v3.5
\AtCaptionSingleLineCheck{%
\let\pagenote\caption@gobble}
@@ -68,6 +68,18 @@
\else
#2%
\fi}}%
+\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}}
\endinput
%%
%% End of file `caption-memoir.sto'.
diff --git a/Master/texmf-dist/tex/latex/caption/caption.sty b/Master/texmf-dist/tex/latex/caption/caption.sty
index d1b54cae5e0..12303a3de3a 100644
--- a/Master/texmf-dist/tex/latex/caption/caption.sty
+++ b/Master/texmf-dist/tex/latex/caption/caption.sty
@@ -46,7 +46,7 @@
\DeclareRelease{v3.4}{2019-11-24}{caption_2020-07-29.sty}
\DeclareRelease{v3.5}{2020-08-30}{caption_2020-10-26.sty}
\DeclareCurrentRelease{v3.6}{2022-02-20}
-\ProvidesPackage{caption}[2023/07/31 v3.6n Customizing captions (AR)]
+\ProvidesPackage{caption}[2023/08/05 v3.6o Customizing captions (AR)]
\RequirePackage{caption3}[2023/07/31] % needs v2.4d or newer
\caption@ifdocumentclass{unknown}%
{\caption@WarningNoLine{%
@@ -628,8 +628,8 @@
\let\caption@defrostHref\relax
\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
\newcommand*\subcaptionsetup{%
\caption@teststar\@subcaptionsetup*{}}
\newcommand*\@subcaptionsetup[1]{%
diff --git a/Master/texmf-dist/tex/latex/caption/caption3.sty b/Master/texmf-dist/tex/latex/caption/caption3.sty
index aa618a68df9..37717649f6e 100644
--- a/Master/texmf-dist/tex/latex/caption/caption3.sty
+++ b/Master/texmf-dist/tex/latex/caption/caption3.sty
@@ -405,6 +405,11 @@
\@onlypreamble\caption@SetupOptions
\newcommand*\caption@SetupOptions@list{}
\@onlypreamble\caption@SetupOptions@list
+%% 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
diff --git a/Master/texmf-dist/tex/latex/caption/caption_2010-01-09.sty b/Master/texmf-dist/tex/latex/caption/caption_2010-01-09.sty
index 04f6b589bec..9559fadb740 100644
--- a/Master/texmf-dist/tex/latex/caption/caption_2010-01-09.sty
+++ b/Master/texmf-dist/tex/latex/caption/caption_2010-01-09.sty
@@ -6,7 +6,7 @@
%%
%% fallback/v3.1/caption.dtx (with options: `package')
%%
-%% Copyright (C) 1994-2022 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
+%% Copyright (C) 1994-2023 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
%%
%% https://gitlab.com/axelsommerfeldt/caption
%%
@@ -36,7 +36,7 @@
%% caption-thesis.sto, bicaption.sty, ltcaption.sty, subcaption.sty.
%%
\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)]
\newcommand*\caption@Info[1]{\PackageInfo{caption}{#1\@gobble}}
\@onlypreamble\caption@Info
\RequirePackage{caption3}[=2008/08/24] % needs v1.1j or newer
@@ -435,8 +435,8 @@
\let\caption@defrostHref\relax
\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
\def\caption@caption{%
\caption@iftype
{\caption@checkgrouplevel\@empty\caption
diff --git a/Master/texmf-dist/tex/latex/caption/caption_2011-11-10.sty b/Master/texmf-dist/tex/latex/caption/caption_2011-11-10.sty
index 8db308d38cb..8a6d8d0ca10 100644
--- a/Master/texmf-dist/tex/latex/caption/caption_2011-11-10.sty
+++ b/Master/texmf-dist/tex/latex/caption/caption_2011-11-10.sty
@@ -6,7 +6,7 @@
%%
%% fallback/v3.2/caption.dtx (with options: `package')
%%
-%% Copyright (C) 1994-2022 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
+%% Copyright (C) 1994-2023 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
%%
%% https://gitlab.com/axelsommerfeldt/caption
%%
@@ -36,7 +36,7 @@
%% caption-thesis.sto, bicaption.sty, ltcaption.sty, subcaption.sty.
%%
\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)]
\RequirePackage{caption3}[=2011/08/30] % needs v1.4 or newer
\caption@ifbool{documentclass}{}{%
\caption@WarningNoLine{%
@@ -900,8 +900,8 @@
\let\caption@defrostHref\relax
\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
\def\caption@DeclareSubType sub#1\@nil{%
\caption@Debug{Initializing subtype for `#1'\@gobble}%
\@namedef{caption@c@#1}{0}%
diff --git a/Master/texmf-dist/tex/latex/caption/caption_2019-09-01.sty b/Master/texmf-dist/tex/latex/caption/caption_2019-09-01.sty
index 0d148a31070..340ebc7ae26 100644
--- a/Master/texmf-dist/tex/latex/caption/caption_2019-09-01.sty
+++ b/Master/texmf-dist/tex/latex/caption/caption_2019-09-01.sty
@@ -6,7 +6,7 @@
%%
%% fallback/v3.3/caption.dtx (with options: `package')
%%
-%% Copyright (C) 1994-2022 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
+%% Copyright (C) 1994-2023 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
%%
%% https://gitlab.com/axelsommerfeldt/caption
%%
@@ -36,7 +36,7 @@
%% caption-thesis.sto, bicaption.sty, ltcaption.sty, subcaption.sty.
%%
\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)]
\RequirePackage{caption3}[=2019/09/01] % needs v1.8d or newer
\caption@ifbool{documentclass}{}{%
\caption@WarningNoLine{%
@@ -1053,8 +1053,8 @@
\let\caption@defrostHref\relax
\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
\def\caption@DeclareSubType sub#1\@nil{%
\caption@Debug{Initializing subtype for `#1'\@gobble}%
\@namedef{caption@beginsub#1}{\caption@beginsubfloat{#1}}}
diff --git a/Master/texmf-dist/tex/latex/caption/caption_2020-07-29.sty b/Master/texmf-dist/tex/latex/caption/caption_2020-07-29.sty
index 6067c422a27..0b4277f63b7 100644
--- a/Master/texmf-dist/tex/latex/caption/caption_2020-07-29.sty
+++ b/Master/texmf-dist/tex/latex/caption/caption_2020-07-29.sty
@@ -6,7 +6,7 @@
%%
%% fallback/v3.4/caption.dtx (with options: `package')
%%
-%% Copyright (C) 1994-2022 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
+%% Copyright (C) 1994-2023 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
%%
%% https://gitlab.com/axelsommerfeldt/caption
%%
@@ -36,7 +36,7 @@
%% caption-thesis.sto, bicaption.sty, ltcaption.sty, subcaption.sty.
%%
\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)]
\RequirePackage{caption3}[=2020/07/29] % needs v1.13 or newer
\caption@ifbool{documentclass}{}{%
\caption@WarningNoLine{%
@@ -666,8 +666,8 @@
\let\caption@defrostHref\relax
\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
\newcommand*\caption@subtypehook{%
\ifx\caption\caption@subcaption \else
\caption@warmup
diff --git a/Master/texmf-dist/tex/latex/caption/caption_2020-10-26.sty b/Master/texmf-dist/tex/latex/caption/caption_2020-10-26.sty
index a558a929150..d2368f149e7 100644
--- a/Master/texmf-dist/tex/latex/caption/caption_2020-10-26.sty
+++ b/Master/texmf-dist/tex/latex/caption/caption_2020-10-26.sty
@@ -6,7 +6,7 @@
%%
%% fallback/v3.5/caption.dtx (with options: `package')
%%
-%% Copyright (C) 1994-2022 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
+%% Copyright (C) 1994-2023 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm)
%%
%% https://gitlab.com/axelsommerfeldt/caption
%%
@@ -36,7 +36,7 @@
%% caption-thesis.sto, bicaption.sty, ltcaption.sty, subcaption.sty.
%%
\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)]
\RequirePackage{caption3}[=2020/10/06] % needs v2.2b or newer
\caption@ifbool{documentclass}{}{%
\caption@WarningNoLine{%
@@ -568,8 +568,8 @@
\let\caption@defrostHref\relax
\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
\newcommand*\caption@subtypehook{%
\ifx\caption\caption@subcaption \else
\caption@warmup