texlive[53517] Master/texmf-dist: caption (23jan20)

commits+karl at tug.org commits+karl at tug.org
Thu Jan 23 22:57:04 CET 2020


Revision: 53517
          http://tug.org/svn/texlive?view=revision&revision=53517
Author:   karl
Date:     2020-01-23 22:57:04 +0100 (Thu, 23 Jan 2020)
Log Message:
-----------
caption (23jan20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/caption/README
    trunk/Master/texmf-dist/source/latex/caption/subcaption.dtx
    trunk/Master/texmf-dist/tex/latex/caption/subcaption.sty

Modified: trunk/Master/texmf-dist/doc/latex/caption/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/caption/README	2020-01-23 21:56:50 UTC (rev 53516)
+++ trunk/Master/texmf-dist/doc/latex/caption/README	2020-01-23 21:57:04 UTC (rev 53517)
@@ -1,7 +1,7 @@
 ==========================================================================
 
 The `caption' package bundle
-Release 2020-01-03
+Release 2020-01-22
 Copyright (C) 1994-2020 Axel Sommerfeldt (axel.sommerfeldt at f-m.fm)
 
 License: LPPL = LaTeX Project Public Licence

Modified: trunk/Master/texmf-dist/source/latex/caption/subcaption.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/caption/subcaption.dtx	2020-01-23 21:56:50 UTC (rev 53516)
+++ trunk/Master/texmf-dist/source/latex/caption/subcaption.dtx	2020-01-23 21:57:04 UTC (rev 53517)
@@ -28,7 +28,7 @@
 %   caption-deu.tex, caption-eng.tex, caption-rus.tex.
 % 
 % \fi
-% \CheckSum{229}
+% \CheckSum{232}
 %
 % \iffalse
 %<*driver>
@@ -924,7 +924,7 @@
 %
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{subcaption}[2020/01/03 v1.3b Sub-captions (AR)]
+\ProvidesPackage{subcaption}[2020/01/22 v1.3d Sub-captions (AR)]
 %    \end{macrocode}
 %
 % \subsection{Initial code}
@@ -931,7 +931,7 @@
 %
 % Since we base on the \package{caption} package we load it here.
 %    \begin{macrocode}
-\RequirePackage{caption}[2019/09/01] % needs v3.3c or newer
+\RequirePackage{caption}[2020/01/03] % needs v3.4h or newer
 %    \end{macrocode}
 %
 % \begin{macro}{\subcaption at CheckCompatibility}
@@ -986,23 +986,6 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% \iffalse
-% \subsection{Declaration of options}
-% We do not have own options.
-% \fi
-%
-% \subsection{Execution of options}
-%
-% We use |\caption at ExecuteOptions| and |\caption at ProcessOptions| here to add
-% the options to the `|sub|' option list instead of executing them immediately.
-% \changes{v1.1}{2018/05/01}{Bugfix: Option \texttt{font+=small} changed to \texttt{size=smaller}}
-%    \begin{macrocode}
-\caption at SetupOptions{subcaption}{\captionsetup[sub]{#2}}%
-\caption at ExecuteOptions{subcaption}{%
-  size=smaller,labelformat=parens,labelsep=space,skip=6pt,list=0,hypcap=0}
-\caption at ProcessOptions*{subcaption}
-%    \end{macrocode}
-%
 % \subsection{Main code}
 %
 % \changes{v1.1}{2011/10/30}{Adapted to the newfloat package}
@@ -1071,6 +1054,7 @@
 % \begin{macro}{subfigure}
 % \begin{macro}{subtable}
 % \changes{v1.2}{2016/02/21}{Optional argument values `B' and `T' added}
+% \changes{v1.3d}{2020/01/22}{Definition and usage of \cs{@subfloatboxreset} added}
 % This is just an ordinary \env{minipage} environment with
 % |\setcaptionsubtype| as first contents line.
 % It will be defined using the helper macro |\caption at For{sub|\-|type|\-|list}|
@@ -1106,8 +1090,12 @@
   \else
     \minipage[#1]#2{#3}%
   \fi\fi
+  \@subfloatboxreset
   \setcaptionsubtype\relax}
 %    \end{macrocode}
+%    \begin{macrocode}
+\providecommand*\@subfloatboxreset{}
+%    \end{macrocode}
 % \end{macro}
 % \end{macro}
 %
@@ -1208,6 +1196,20 @@
 %    \end{macrocode}
 % \end{macro}
 %
+% \subsection{Execution of options}
+%
+% We use |\caption at ExecuteOptions| and |\caption at ProcessOptions| here to add
+% the options to the `|sub|' option list instead of executing them immediately.
+% \changes{v1.1}{2018/05/01}{Bugfix: Option \texttt{font+=small} changed to \texttt{size=smaller}}
+%    \begin{macrocode}
+\caption at SetupOptions{subcaption}{\captionsetup[sub]{#2}}%
+\caption at ExecuteOptions{subcaption}{%
+  size=smaller,labelformat=parens,labelsep=space,skip=6pt,list=0,hypcap=0}
+\caption at ProcessOptions*{subcaption}
+%    \end{macrocode}
+%
+% \subsection{Bonus material}
+%
 % \subsubsection{The \cs{subfloat} command}
 %
 % \begin{macro}{\subfloat}
@@ -1243,7 +1245,8 @@
 %    \begin{macrocode}
 \def\subfloat@#1{%
   \setbox\@tempboxa\hbox{#1}%
-  \caption at iiiibox\setcaptionsubtype
+  \caption at iiiibox
+    \setcaptionsubtype
     {\phantomcaption\@gobble}{\phantomcaption\@gobble}% no box with \caption
     {}% no optional arguments for \caption
     {}% no sub-caption

Modified: trunk/Master/texmf-dist/tex/latex/caption/subcaption.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/caption/subcaption.sty	2020-01-23 21:56:50 UTC (rev 53516)
+++ trunk/Master/texmf-dist/tex/latex/caption/subcaption.sty	2020-01-23 21:57:04 UTC (rev 53517)
@@ -34,8 +34,8 @@
 %%   caption-deu.tex, caption-eng.tex, caption-rus.tex.
 %% 
 \NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{subcaption}[2020/01/03 v1.3b Sub-captions (AR)]
-\RequirePackage{caption}[2019/09/01] % needs v3.3c or newer
+\ProvidesPackage{subcaption}[2020/01/22 v1.3d Sub-captions (AR)]
+\RequirePackage{caption}[2020/01/03] % needs v3.4h or newer
 \newcommand\subcaption at CheckCompatibility{%
   \@ifundefined{caption at ifcompatibility}{}{%
     \caption at ifcompatibility{%
@@ -65,10 +65,6 @@
   \let\subcaption at CheckCompatibility\@undefined
   \let\subcaption at EH\@undefined
 }
-\caption at SetupOptions{subcaption}{\captionsetup[sub]{#2}}%
-\caption at ExecuteOptions{subcaption}{%
-  size=smaller,labelformat=parens,labelsep=space,skip=6pt,list=0,hypcap=0}
-\caption at ProcessOptions*{subcaption}
 \caption at ForEachType{\DeclareCaptionSubType{#1}}
 \caption at ifundefined\newsubfloat{}{%
   \renewcommand*\newsubfloat{\DeclareCaptionSubType}}
@@ -105,7 +101,9 @@
   \else
     \minipage[#1]#2{#3}%
   \fi\fi
+  \@subfloatboxreset
   \setcaptionsubtype\relax}
+\providecommand*\@subfloatboxreset{}
 \newcommand*\subcaptionbox{%
   \caption at withoptargs{\caption at ibox\setcaptionsubtype}}
 \g at addto@macro\caption at subtypehook{%
@@ -142,6 +140,10 @@
     {\caption at Error{Undefined label format `#1'}}%
     {\expandafter\let\expandafter\subcaption at reffmt\csname caption at lfmt@#1\endcsname}}
 \subcaption at setrefformat{simple}
+\caption at SetupOptions{subcaption}{\captionsetup[sub]{#2}}%
+\caption at ExecuteOptions{subcaption}{%
+  size=smaller,labelformat=parens,labelsep=space,skip=6pt,list=0,hypcap=0}
+\caption at ProcessOptions*{subcaption}
 \def\subfloat{%
   \@ifnextchar[\@subfloat\subfloat@}
 \long\def\@subfloat[#1]{%
@@ -155,7 +157,8 @@
   \ignorespaces}
 \def\subfloat@#1{%
   \setbox\@tempboxa\hbox{#1}%
-  \caption at iiiibox\setcaptionsubtype
+  \caption at iiiibox
+    \setcaptionsubtype
     {\phantomcaption\@gobble}{\phantomcaption\@gobble}% no box with \caption
     {}% no optional arguments for \caption
     {}% no sub-caption



More information about the tex-live-commits mailing list