texlive[62758] branches/branch2021.final/Master/texmf-dist: caption
commits+karl at tug.org
commits+karl at tug.org
Thu Mar 17 21:24:37 CET 2022
Revision: 62758
http://tug.org/svn/texlive?view=revision&revision=62758
Author: karl
Date: 2022-03-17 21:24:37 +0100 (Thu, 17 Mar 2022)
Log Message:
-----------
caption (17mar22) (branch)
Modified Paths:
--------------
branches/branch2021.final/Master/texmf-dist/doc/latex/caption/README
branches/branch2021.final/Master/texmf-dist/doc/latex/caption/bicaption.pdf
branches/branch2021.final/Master/texmf-dist/source/latex/caption/bicaption.dtx
branches/branch2021.final/Master/texmf-dist/source/latex/caption/caption-memoir.dtx
branches/branch2021.final/Master/texmf-dist/source/latex/caption/caption.dtx
branches/branch2021.final/Master/texmf-dist/source/latex/caption/caption3.dtx
branches/branch2021.final/Master/texmf-dist/source/latex/caption/fallback/v3.5/caption.dtx
branches/branch2021.final/Master/texmf-dist/tex/latex/caption/caption-memoir.sto
branches/branch2021.final/Master/texmf-dist/tex/latex/caption/caption.sty
branches/branch2021.final/Master/texmf-dist/tex/latex/caption/caption3.sty
branches/branch2021.final/Master/texmf-dist/tex/latex/caption/caption_2020-10-26.sty
Modified: branches/branch2021.final/Master/texmf-dist/doc/latex/caption/README
===================================================================
--- branches/branch2021.final/Master/texmf-dist/doc/latex/caption/README 2022-03-17 20:24:13 UTC (rev 62757)
+++ branches/branch2021.final/Master/texmf-dist/doc/latex/caption/README 2022-03-17 20:24:37 UTC (rev 62758)
@@ -1,7 +1,7 @@
==========================================================================
The `caption' package bundle
-Release 2022-02-28
+Release 2022-03-17
Copyright (C) 1994-2022 Axel Sommerfeldt (axel.sommerfeldt at f-m.fm)
License: LPPL = LaTeX Project Public Licence
Modified: branches/branch2021.final/Master/texmf-dist/doc/latex/caption/bicaption.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2021.final/Master/texmf-dist/source/latex/caption/bicaption.dtx
===================================================================
--- branches/branch2021.final/Master/texmf-dist/source/latex/caption/bicaption.dtx 2022-03-17 20:24:13 UTC (rev 62757)
+++ branches/branch2021.final/Master/texmf-dist/source/latex/caption/bicaption.dtx 2022-03-17 20:24:37 UTC (rev 62758)
@@ -2,7 +2,7 @@
%
% This is file `bicaption.dtx'.
%
-% Copyright (C) 2010-2021 Axel Sommerfeldt (axel.sommerfeldt at f-m.fm)
+% Copyright (C) 2010-2022 Axel Sommerfeldt (axel.sommerfeldt at f-m.fm)
%
% --------------------------------------------------------------------------
%
@@ -36,7 +36,7 @@
% \iffalse
%<*driver>
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesFile{bicaption.drv}[2022/01/07 v1.5 Adds a bilingual caption feature to the caption package]
+\ProvidesFile{bicaption.drv}[2022/03/06 v1.5 Adds a bilingual caption feature to the caption package]
\hbadness=9999 \newcount\hbadness \hfuzz=74pt % Make TeX shut up.
%\errorcontextlines=3
%
@@ -269,9 +269,14 @@
% making the first language the second one and vice versa. (The default is |false|.)
%
% \item[bi-separator=]
+% \NEWfeature{v1.3}
+% The vertical distance between the first and second bilingual caption is usually
+% determined by the \TeX\ skips set by |\normal|\-|size| which is applied right
+% before both captions get typesetted.
+% (This behaviour is inherited from the original \LaTeX\ code for |\caption| which
+% applies |\normal|\-|size| right before |\@make|\-|caption|, too.)
% \begin{quote}|\captionsetup{bi-separator=|\meta{name}|}|\end{quote}
-% \NEWfeature{v1.3}
-% will select a separator between first and second bilingual caption.
+% will select an additional separator between first and second bilingual caption.
% You could choose one of the following: `none' (which is the default one
% and could also be addressed as `default'), `smallskip', `medskip',
% `largeskip', or a self-defined one using
@@ -291,7 +296,15 @@
% |\DeclareBiCaptionSeparator{3pt}{\vspace{3pt}}|\\
% |\captionsetup{bi-separator=3pt}|
% \end{quote}
-% will put |3pt| vertical space between the two bilingual captions.
+% will place |3pt| extra vertical space between the two bilingual captions.
+% \par\medskip
+% \textit{Note:} In contrast to the original \LaTeX\ code for |\caption| the
+% \package{caption} package does not apply |\normal|\-|size| directly
+% but will apply the caption font definition |normal|\-|size| instead
+% (which is usually defined as |\normal|\-|size|).
+% Therefore the vertical space between both captions
+% could also be influenced by redefining it, e.g.:
+% |\Declare|\-|Caption|\-|Font{normal|\-|size}{|\ldots|}|
% \end{Options}
%
% \section{The \cs{bicaption} commands}
Modified: branches/branch2021.final/Master/texmf-dist/source/latex/caption/caption-memoir.dtx
===================================================================
--- branches/branch2021.final/Master/texmf-dist/source/latex/caption/caption-memoir.dtx 2022-03-17 20:24:13 UTC (rev 62757)
+++ branches/branch2021.final/Master/texmf-dist/source/latex/caption/caption-memoir.dtx 2022-03-17 20:24:37 UTC (rev 62758)
@@ -183,7 +183,7 @@
%
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesFile{caption-memoir.sto}[2022/02/28 v2.2a Adaption of the caption package to the memoir document class (AR)]
+\ProvidesFile{caption-memoir.sto}[2022/03/02 v2.2b Adaption of the caption package to the memoir document class (AR)]
% \end{macrocode}
%
% \section{Adaptions already included in the caption package}
@@ -278,10 +278,6 @@
%
% \section{Vertical spaces before and after captions}
%
-% \begin{macrocode}
-\AtCaptionPackage{%
-% \end{macrocode}
-
% The \class{memoir} document classes uses |\above|\-|caption|\-|skip| and |\below|\-|caption|\-|skip|
% different than the standard document classes and the \package{caption} package:
% They always typeset |\above|\-|caption|\-|skip| before the caption and
@@ -291,27 +287,24 @@
% package is used, so no extra vertical space will be created.
%
% \begin{macrocode}
- \setlength\belowcaptionskip{0pt}%
+\AtCaptionPackage{%
+ \setlength\belowcaptionskip{0pt}}
% \end{macrocode}
%
% Furthermore we adapt the `auto' positioning algorithm to match the one implemented
% in the \class{memoir} document class.
-% (Note: This needs at least \package{caption} \version{3.6}.)
+% (Note: This needs at least \package{caption3} \version{2.3}.)
%
% \begin{macrocode}
- \@ifundefined{DeclareCaptionAutoPosition}{}{%
- \DeclareCaptionAutoPosition{%
- \ifvmode
- \ifdim\prevdepth>-99\p@#2\else#1\fi
- \else
- #2%
- \fi}}%
+\@ifundefined{DeclareCaptionAutoPosition}{}{%
+ \DeclareCaptionAutoPosition{%
+ \ifvmode
+ \ifdim\prevdepth>-99\p@#2\else#1\fi
+ \else
+ #2%
+ \fi}}%
% \end{macrocode}
%
-% \begin{macrocode}
-}
-% \end{macrocode}
-%
% \section{TODO}
%
% \begin{macrocode}
Modified: branches/branch2021.final/Master/texmf-dist/source/latex/caption/caption.dtx
===================================================================
--- branches/branch2021.final/Master/texmf-dist/source/latex/caption/caption.dtx 2022-03-17 20:24:13 UTC (rev 62757)
+++ branches/branch2021.final/Master/texmf-dist/source/latex/caption/caption.dtx 2022-03-17 20:24:37 UTC (rev 62758)
@@ -31,7 +31,7 @@
%
% \fi
%
-% \CheckSum{2840}
+% \CheckSum{2836}
%
% \iffalse
%<*driver>
@@ -4593,7 +4593,7 @@
%
% Identify the current version of the package.
% \begin{macrocode}
-\ProvidesPackage{caption}[2022/02/28 v3.6a Customizing captions (AR)]
+\ProvidesPackage{caption}[2022/03/01 v3.6b Customizing captions (AR)]
% \end{macrocode}
%
% \subsection{Loading the kernel}
@@ -5140,20 +5140,10 @@
% \changes{v3.2}{2010/11/07}{Support of option \opt{parboxrestore} added}
% \changes{v3.5g}{2020/10/26}{New implementation; renamed from \cs{caption at boxrestore} to \cs{caption at parboxrestore}}
% \changes{v3.6}{2021/01/02}{Always uses \cs{@parboxrestore} now}
-% \changes{v3.6}{2022/02/13}{Hooks added}
-% |\caption at parboxrestore| simply expands to |\@par|\-|box|\-|restore|,
-% surrounded by `before' and `after' hooks.
+% |\caption at parboxrestore| simply expands to |\@par|\-|box|\-|restore|.
% \begin{macrocode}
-\newcommand*\caption at parboxrestore{%
- \caption at before@parboxrestore
- \caption@@parboxrestore
- \caption at after@parboxrestore}
+\newcommand*\caption at parboxrestore{\@parboxrestore}
% \end{macrocode}
-% \begin{macrocode}
-\newcommand*\caption at before@parboxrestore{}
-\newcommand*\caption@@parboxrestore{\@parboxrestore}
-\newcommand*\caption at after@parboxrestore{}
-% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\caption at makecaption}
@@ -6205,10 +6195,11 @@
% \changes{v3.0l}{2007/02/04}{Takes now 3 args instead of 2, check for empty heading added}
% \changes{v3.1}{2007/07/01}{Makes lst-entry now instead of redefining \cs{addcontentsline}}
% \changes{v3.2}{2010/10/26}{Bugfix 09-05-15: Setting of \cs{lst@@caption} added}
+% \changes{v3.5h}{2022/03/01}{Hook added, setting of \cs{lst@@caption} removed}
% |\caption at beginex|\marg{type}\marg{list entry}\marg{heading}\par
% performs the same tasks as |\caption at begin| and additionally:
% \begin{enumerate}
-% \item[4.] Set |\lst@@caption|, so |\fnum at lstlisting| will include a numbering.
+% \item[4.] Apply the hook |\caption at beginex@hook|
% \item[5.] Make an entry in the list-of-whatever.
% \item[6.] Set |\caption at ifempty| according argument \meta{heading}.
% \end{enumerate}
@@ -6215,10 +6206,13 @@
% \begin{macrocode}
\newcommand\caption at beginex[3]{%
\caption at begin{#1}%
- \let\lst@@caption\relax
+ \caption at beginex@hook
\caption at addcontentsline{#1}{#2}%
\caption at ifempty{#3}{}}
% \end{macrocode}
+% \begin{macrocode}
+\newcommand*\caption at beginex@hook{}
+% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\caption at end}
@@ -6806,13 +6800,13 @@
%
% \begin{macro}{\caption at set@adjustwidth}
% \changes{v3.4k}{2020/05/30}{This macro definition added}
-% \changes{v3.6}{2022/02/13}{Usage of \cs{AtBeginCaption} replaced by \cs{l at addto@macro}\cs{caption at before@parboxrestore}}
+% \changes{v3.5h}{2022/03/01}{Usage of \cs{AtBeginCaption} replaced by \cs{l at addto@macro}\cs{caption at beginex@hook}}
% Store the values of \cs{hsize} and \cs{linewidth}.
% \begin{macrocode}
\providecommand*\caption at set@adjustwidth{%
\caption at adjustwidth@hsize\hsize
\caption at adjustwidth@linewidth\linewidth
- \l at addto@macro\caption at before@parboxrestore\caption at test@adjustwidth}%
+ \l at addto@macro\caption at beginex@hook\caption at test@adjustwidth}%
% \end{macrocode}
% \begin{macrocode}
\providecommand*\caption at patch@changepage[1]{%
@@ -7723,7 +7717,17 @@
% \end{macrocode}
% \end{macro}
%
+% \begin{macro}{\lst@@caption}
+% \changes{v3.1}{2007/03/03}{This macro added}
% \changes{v3.1a}{2007/07/13}{Bugfix 07-09-13: \cs{lst@@caption} will not be re-defined anymore}
+% \changes{v3.2}{2010/10/26}{Bugfix 09-05-15: Setting of \cs{lst@@caption} added to \cs{caption at beginex}}
+% \changes{v3.5h}{2022/03/01}{Re-definition of \cs{lst@@caption} moved from \cs{caption at beginex} to \cs{caption at beginex@hook}}
+% We define |\lst@@caption| to non-|\@empty|, so |\fnum at lst|\-|listing| will
+% include a numbering.
+% \begin{macrocode}
+ \l at addto@macro\caption at beginex@hook{\let\lst@@caption\relax}%
+% \end{macrocode}
+% \end{macro}
%
% \begin{macrocode}
}{}
Modified: branches/branch2021.final/Master/texmf-dist/source/latex/caption/caption3.dtx
===================================================================
--- branches/branch2021.final/Master/texmf-dist/source/latex/caption/caption3.dtx 2022-03-17 20:24:13 UTC (rev 62757)
+++ branches/branch2021.final/Master/texmf-dist/source/latex/caption/caption3.dtx 2022-03-17 20:24:37 UTC (rev 62758)
@@ -31,7 +31,7 @@
%
% \fi
%
-% \CheckSum{3814}
+% \CheckSum{3813}
%
% \iffalse
%<*driver>
@@ -264,7 +264,7 @@
%
% Identify the current version of the package.
% \begin{macrocode}
-\ProvidesPackage{caption3}[2022/02/28 v2.3a caption3 kernel (AR)]
+\ProvidesPackage{caption3}[2022/03/17 v2.3b caption3 kernel (AR)]
% \end{macrocode}
%
% \section{Generic helpers}
@@ -832,6 +832,7 @@
% \changes{v1.2a}{2008/01/12}{\cs{ifcaptionsetup at star} will be set now}
% \changes{v1.5}{2012/04/09}{Support of multiple optional arguments added}
% \changes{v1.8h}{2020/01/03}{Syntax check of saved options added}
+% \changes{v2.3b}{2022/03/17}{Usage of \cs{captionsetup} inside \cs{caption at setup@options@@} replaced by \cs{caption at setup@options@}}
% |\captionsetup*|\oarg{type}\ldots\marg{keyval-list of options}\\
% applies the given list of options.
% If the optional argument `type' is specified, we simply save or append
@@ -850,19 +851,19 @@
\caption at setup@options\caption at setup}
% \end{macrocode}
% \begin{macrocode}
-\newcommand*\caption at setup{\caption at setkeys{caption}}
+\newcommand*\caption at setup{%
+ \caption at setkeys{caption}}
% \end{macrocode}
% \begin{macrocode}
\def\caption at setup@options[#1]{%
\@ifnextchar[%]
{\caption at stepthecounter
- \caption at withoptargs{\@expandtwoargs
- \caption at setup@options at i{#1}{@\caption at thecounter}}}%
+ \@expandtwoargs\caption at setup@options@@{#1}{@\caption at thecounter}}%
{\caption at setup@options@{#1}}}
% \end{macrocode}
% \begin{macrocode}
-\newcommand*\caption at setup@options at i[4]{%
- \caption at declare@option{#2}[]{\captionsetup#3{#4}}%
+\def\caption at setup@options@@#1#2[#3]#4{%
+ \caption at declare@option{#2}[]{\caption at setup@options@{#3}{#4}}%
\caption at setup@options@{#1}{#2}}
% \end{macrocode}
% \begin{macrocode}
Modified: branches/branch2021.final/Master/texmf-dist/source/latex/caption/fallback/v3.5/caption.dtx
===================================================================
--- branches/branch2021.final/Master/texmf-dist/source/latex/caption/fallback/v3.5/caption.dtx 2022-03-17 20:24:13 UTC (rev 62757)
+++ branches/branch2021.final/Master/texmf-dist/source/latex/caption/fallback/v3.5/caption.dtx 2022-03-17 20:24:37 UTC (rev 62758)
@@ -2,7 +2,7 @@
%
% This is file `caption.dtx'.
%
-% Copyright (C) 1994-2020 Axel Sommerfeldt (axel.sommerfeldt at f-m.fm)
+% Copyright (C) 1994-2022 Axel Sommerfeldt (axel.sommerfeldt at f-m.fm)
%
% --------------------------------------------------------------------------
%
@@ -32,7 +32,7 @@
% caption-deu.tex, caption-eng.tex, caption-rus.tex.
%
% \fi
-% \CheckSum{2692}
+% \CheckSum{2702}
%
% \iffalse
%<*driver>
@@ -241,7 +241,7 @@
%
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{caption}[2020/10/26 v3.5g Customizing captions (AR)]
+\ProvidesPackage{caption}[2022/03/01 v3.5h Customizing captions (AR)]
% \end{macrocode}
%
% \section{Loading the kernel}
@@ -768,6 +768,10 @@
\caption at if@minipage\@minipagetrue\@minipagefalse}%
\caption at end}
% \end{macrocode}
+% \begin{macrocode}
+\newcommand*\caption at before@parboxrestore{}
+\newcommand*\caption at after@parboxrestore{}
+% \end{macrocode}
% \class{memoir} document class stuff:
% \begin{macrocode}
\providecommand\memcaptioninfo[4]{}
@@ -1610,10 +1614,11 @@
% \changes{v3.0l}{2007/02/04}{Takes now 3 args instead of 2, check for empty heading added}
% \changes{v3.1}{2007/07/01}{Makes lst-entry now instead of redefining \cs{addcontentsline}}
% \changes{v3.2}{2010/10/26}{Bugfix 09-05-15: Setting of \cs{lst@@caption} added}
+% \changes{v3.5h}{2022/03/01}{Hook added, setting of \cs{lst@@caption} removed}
% |\caption at beginex|\marg{type}\marg{list entry}\marg{heading}\par
% performs the same tasks as |\caption at begin| and additionally:
% \begin{enumerate}
-% \item[4.] Set |\lst@@caption|, so |\fnum at lstlisting| will include a numbering.
+% \item[4.] Apply the hook |\caption at beginex@hook|
% \item[5.] Make an entry in the list-of-whatever.
% \item[6.] Set |\caption at ifempty| according argument \meta{heading}.
% \end{enumerate}
@@ -1620,10 +1625,13 @@
% \begin{macrocode}
\newcommand\caption at beginex[3]{%
\caption at begin{#1}%
- \let\lst@@caption\relax
+ \caption at beginex@hook
\caption at addcontentsline{#1}{#2}%
\caption at ifempty{#3}{}}
% \end{macrocode}
+% \begin{macrocode}
+\newcommand*\caption at beginex@hook{}
+% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\caption at end}
@@ -2243,11 +2251,13 @@
%
% \begin{macro}{\caption at set@adjustwidth}
% \changes{v3.4k}{2020/05/30}{This macro and its usage added}
+% \changes{v3.5h}{2022/03/01}{Usage of \cs{AtBeginCaption} replaced by \cs{l at addto@macro}\cs{caption at beginex@hook}}
% Store the values of \cs{hsize} and \cs{linewidth}.
% \begin{macrocode}
\providecommand*\caption at set@adjustwidth{%
\caption at adjustwidth@hsize\hsize
- \caption at adjustwidth@linewidth\linewidth}%
+ \caption at adjustwidth@linewidth\linewidth
+ \l at addto@macro\caption at beginex@hook\caption at test@adjustwidth}%
% \end{macrocode}
% \begin{macrocode}
\providecommand*\caption at patch@changepage[1]{%
@@ -2274,9 +2284,6 @@
\fi
\fi}%
% \end{macrocode}
-% \begin{macrocode}
- \AtBeginCaption{\caption at test@adjustwidth}%
-% \end{macrocode}
% \end{macro}
%
% \begin{macrocode}
@@ -3154,7 +3161,17 @@
% \end{macrocode}
% \end{macro}
%
+% \begin{macro}{\lst@@caption}
+% \changes{v3.1}{2007/03/03}{This macro added}
% \changes{v3.1a}{2007/07/13}{Bugfix 07-09-13: \cs{lst@@caption} will not be re-defined anymore}
+% \changes{v3.2}{2010/10/26}{Bugfix 09-05-15: Setting of \cs{lst@@caption} added to \cs{caption at beginex}}
+% \changes{v3.5h}{2022/03/01}{Re-definition of \cs{lst@@caption} moved from \cs{caption at beginex} to \cs{caption at beginex@hook}}
+% We define |\lst@@caption| to non-|\@empty|, so |\fnum at lst|\-|listing| will
+% include a numbering.
+% \begin{macrocode}
+ \l at addto@macro\caption at beginex@hook{\let\lst@@caption\relax}%
+% \end{macrocode}
+% \end{macro}
%
% \begin{macrocode}
}{}
Modified: branches/branch2021.final/Master/texmf-dist/tex/latex/caption/caption-memoir.sto
===================================================================
--- branches/branch2021.final/Master/texmf-dist/tex/latex/caption/caption-memoir.sto 2022-03-17 20:24:13 UTC (rev 62757)
+++ branches/branch2021.final/Master/texmf-dist/tex/latex/caption/caption-memoir.sto 2022-03-17 20:24:37 UTC (rev 62758)
@@ -36,7 +36,7 @@
%% caption-thesis.sto, bicaption.sty, ltcaption.sty, subcaption.sty.
%%
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesFile{caption-memoir.sto}[2022/02/28 v2.2a Adaption of the caption package to the memoir document class (AR)]
+\ProvidesFile{caption-memoir.sto}[2022/03/02 v2.2b Adaption of the caption package to the memoir document class (AR)]
\providecommand*\AtCaptionSingleLineCheck{\g at addto@macro\caption at prepareslc} % for caption v3.5
\AtCaptionSingleLineCheck{%
\let\pagenote\caption at gobble}
@@ -60,16 +60,14 @@
\captionsetup{textfont=@conttfont}%
\caption at memoir@titlefont}
\AtCaptionPackage{%
-
- \setlength\belowcaptionskip{0pt}%
- \@ifundefined{DeclareCaptionAutoPosition}{}{%
- \DeclareCaptionAutoPosition{%
- \ifvmode
- \ifdim\prevdepth>-99\p@#2\else#1\fi
- \else
- #2%
- \fi}}%
-}
+ \setlength\belowcaptionskip{0pt}}
+\@ifundefined{DeclareCaptionAutoPosition}{}{%
+ \DeclareCaptionAutoPosition{%
+ \ifvmode
+ \ifdim\prevdepth>-99\p@#2\else#1\fi
+ \else
+ #2%
+ \fi}}%
\endinput
%%
%% End of file `caption-memoir.sto'.
Modified: branches/branch2021.final/Master/texmf-dist/tex/latex/caption/caption.sty
===================================================================
--- branches/branch2021.final/Master/texmf-dist/tex/latex/caption/caption.sty 2022-03-17 20:24:13 UTC (rev 62757)
+++ branches/branch2021.final/Master/texmf-dist/tex/latex/caption/caption.sty 2022-03-17 20:24:37 UTC (rev 62758)
@@ -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}[2022/02/28 v3.6a Customizing captions (AR)]
+\ProvidesPackage{caption}[2022/03/01 v3.6b Customizing captions (AR)]
\RequirePackage{caption3}[2022/01/07] % needs v2.3 or newer
\caption at ifbool{documentclass}{}{%
\caption at WarningNoLine{%
@@ -236,13 +236,7 @@
\M at gettitle{#2}}
\providecommand\M at gettitle[1]{}
\newcommand*\caption at nobreak{}
-\newcommand*\caption at parboxrestore{%
- \caption at before@parboxrestore
- \caption@@parboxrestore
- \caption at after@parboxrestore}
-\newcommand*\caption at before@parboxrestore{}
-\newcommand*\caption@@parboxrestore{\@parboxrestore}
-\newcommand*\caption at after@parboxrestore{}
+\newcommand*\caption at parboxrestore{\@parboxrestore}
\long\def\caption at makecaption#1#2{%
\caption at nobreak
\caption at make@above
@@ -619,9 +613,10 @@
\caption at setfnum{#1}}
\newcommand\caption at beginex[3]{%
\caption at begin{#1}%
- \let\lst@@caption\relax
+ \caption at beginex@hook
\caption at addcontentsline{#1}{#2}%
\caption at ifempty{#3}{}}
+\newcommand*\caption at beginex@hook{}
\newcommand*\caption at end{%
\endgroup}
\newcommand*\caption at normalsize{%
@@ -845,7 +840,7 @@
\providecommand*\caption at set@adjustwidth{%
\caption at adjustwidth@hsize\hsize
\caption at adjustwidth@linewidth\linewidth
- \l at addto@macro\caption at before@parboxrestore\caption at test@adjustwidth}%
+ \l at addto@macro\caption at beginex@hook\caption at test@adjustwidth}%
\providecommand*\caption at patch@changepage[1]{%
\expandafter\let\csname caption@#1\expandafter\endcsname\csname #1\endcsname
\expandafter\renewcommand\csname #1\endcsname[2]{%
@@ -1126,6 +1121,7 @@
\def\lst at makecaption{\caption at starfalse\@makecaption}%
\def\lst at maketitle{\caption at startrue\@makecaption\@empty}%
\providecommand*\ext at lstlisting{lol}%
+ \l at addto@macro\caption at beginex@hook{\let\lst@@caption\relax}%
}{}
\providecommand*\LTcaptype{table}
\providecommand*\caption at LT@array{}
Modified: branches/branch2021.final/Master/texmf-dist/tex/latex/caption/caption3.sty
===================================================================
--- branches/branch2021.final/Master/texmf-dist/tex/latex/caption/caption3.sty 2022-03-17 20:24:13 UTC (rev 62757)
+++ branches/branch2021.final/Master/texmf-dist/tex/latex/caption/caption3.sty 2022-03-17 20:24:37 UTC (rev 62758)
@@ -45,7 +45,7 @@
\DeclareRelease{v1.13}{2019-11-24}{caption3_2020-07-29.sty} % for caption v3.4
\DeclareRelease{v2.0} {2020-08-30}{caption3_2020-10-26.sty} % for caption v3.5
\DeclareCurrentRelease{v2.3}{2022-02-20} % for caption v3.6
-\ProvidesPackage{caption3}[2022/02/28 v2.3a caption3 kernel (AR)]
+\ProvidesPackage{caption3}[2022/03/17 v2.3b caption3 kernel (AR)]
\providecommand*\@nameundef[1]{%
\expandafter\let\csname #1\endcsname\@undefined}
\providecommand\l at addto@macro[2]{%
@@ -241,15 +241,15 @@
\captionsetup at startrue#1\captionsetup at starfalse
\@ifnextchar[%]
\caption at setup@options\caption at setup}
-\newcommand*\caption at setup{\caption at setkeys{caption}}
+\newcommand*\caption at setup{%
+ \caption at setkeys{caption}}
\def\caption at setup@options[#1]{%
\@ifnextchar[%]
{\caption at stepthecounter
- \caption at withoptargs{\@expandtwoargs
- \caption at setup@options at i{#1}{@\caption at thecounter}}}%
+ \@expandtwoargs\caption at setup@options@@{#1}{@\caption at thecounter}}%
{\caption at setup@options@{#1}}}
-\newcommand*\caption at setup@options at i[4]{%
- \caption at declare@option{#2}[]{\captionsetup#3{#4}}%
+\def\caption at setup@options@@#1#2[#3]#4{%
+ \caption at declare@option{#2}[]{\caption at setup@options@{#3}{#4}}%
\caption at setup@options@{#1}{#2}}
\newcommand*\caption at setup@options@[2]{%
\@bsphack
Modified: branches/branch2021.final/Master/texmf-dist/tex/latex/caption/caption_2020-10-26.sty
===================================================================
--- branches/branch2021.final/Master/texmf-dist/tex/latex/caption/caption_2020-10-26.sty 2022-03-17 20:24:13 UTC (rev 62757)
+++ branches/branch2021.final/Master/texmf-dist/tex/latex/caption/caption_2020-10-26.sty 2022-03-17 20:24:37 UTC (rev 62758)
@@ -36,7 +36,7 @@
%% caption-thesis.sto, bicaption.sty, ltcaption.sty, subcaption.sty.
%%
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{caption}[2020/10/26 v3.5g Customizing captions (AR)]
+\ProvidesPackage{caption}[2022/03/01 v3.5h Customizing captions (AR)]
\RequirePackage{caption3}[=2020/10/06] % needs v2.2b or newer
\caption at ifbool{documentclass}{}{%
\caption at WarningNoLine{%
@@ -231,6 +231,8 @@
{\ignorespaces\caption at makeanchor{#3}}\par
\caption at if@minipage\@minipagetrue\@minipagefalse}%
\caption at end}
+\newcommand*\caption at before@parboxrestore{}
+\newcommand*\caption at after@parboxrestore{}
\providecommand\memcaptioninfo[4]{}
\newcommand*\caption at prepareanchor[2]{%
\caption at makecurrent{#1}{#2}%
@@ -544,9 +546,10 @@
\caption at setfnum{#1}}
\newcommand\caption at beginex[3]{%
\caption at begin{#1}%
- \let\lst@@caption\relax
+ \caption at beginex@hook
\caption at addcontentsline{#1}{#2}%
\caption at ifempty{#3}{}}
+\newcommand*\caption at beginex@hook{}
\newcommand*\caption at end{%
\endgroup}
\newcommand*\caption at setfnum[1]{%
@@ -787,7 +790,8 @@
\newdimen\caption at adjustwidth@linewidth
\providecommand*\caption at set@adjustwidth{%
\caption at adjustwidth@hsize\hsize
- \caption at adjustwidth@linewidth\linewidth}%
+ \caption at adjustwidth@linewidth\linewidth
+ \l at addto@macro\caption at beginex@hook\caption at test@adjustwidth}%
\providecommand*\caption at patch@changepage[1]{%
\expandafter\let\csname caption@#1\expandafter\endcsname\csname #1\endcsname
\expandafter\renewcommand\csname #1\endcsname[2]{%
@@ -802,7 +806,6 @@
\hsize=\linewidth
\fi
\fi}%
- \AtBeginCaption{\caption at test@adjustwidth}%
}{}%
\caption at IfPackageLoaded{chkfloat}[2012/08/19 v0.1]{%
\caption at ifdefined\chkfloat at addcontentsline{%
@@ -1065,6 +1068,7 @@
\def\lst at makecaption{\caption at starfalse\@makecaption}%
\def\lst at maketitle{\caption at startrue\@makecaption\@empty}%
\providecommand*\ext at lstlisting{lol}%
+ \l at addto@macro\caption at beginex@hook{\let\lst@@caption\relax}%
}{}
\providecommand*\LTcaptype{table}
\providecommand*\caption at LT@array{}
More information about the tex-live-commits
mailing list.