diff options
Diffstat (limited to 'macros/latex/contrib/caption/fallback/v3.0')
-rw-r--r-- | macros/latex/contrib/caption/fallback/v3.0/caption.dtx | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/macros/latex/contrib/caption/fallback/v3.0/caption.dtx b/macros/latex/contrib/caption/fallback/v3.0/caption.dtx index bbdedad42c..e6e4434187 100644 --- a/macros/latex/contrib/caption/fallback/v3.0/caption.dtx +++ b/macros/latex/contrib/caption/fallback/v3.0/caption.dtx @@ -23,7 +23,7 @@ % caption.sty, caption2.sty, caption3.sty, and manual.tex. % % \fi -% \CheckSum{2178} +% \CheckSum{2179} % % \iffalse %<*driver> @@ -3506,7 +3506,7 @@ % % \begin{macrocode} \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesPackage{caption}[2007/04/16 v3.0q Customising captions (AR)] +\ProvidesPackage{caption}[2022/07/10 v3.0r Customising captions (AR)] % \end{macrocode} % % \subsubsection*{Loading the kernel} @@ -4893,8 +4893,9 @@ % \begin{macro}{\SC@zfloat} % \changes{v3.0b}{2004/05/16}{Local definition of \cs{captionsetup} added} % \changes{v3.0c}{2004/07/16}{Bugfix 04-07-15: Check for \cs{caption@caption} removed} +% \changes{v3.0r}{2022/07/10}{\cs{ignorespaces} appended} % This macro will be called at the start of the environment, here is a good -% opportunity to do some adaptations to |\caption| and |\captionsetup|. +% opportunity to do some adaptations to |\caption| and |\caption|\-|setup|. % \begin{macrocode} \let\caption@SC@zfloat\SC@zfloat \def\SC@zfloat#1#2#3[#4]{% @@ -4907,7 +4908,7 @@ % \end{macrocode} % % Since the sidecap package uses our |\caption| code outside the -% floating environment the regular |\captionsetup| will not work. +% floating environment the regular |\caption|\-|setup| will not work. % So we need a special version here which saves the given argument list % which will be executed later on. % \begin{macrocode} @@ -4920,7 +4921,12 @@ \let\caption@SC\caption % \def\caption{\renewcommand\captionsetup[1]{}\caption@caption\caption@SC}% \def\caption{\caption@caption\caption@SC}% - }% +% \end{macrocode} +% +% Since the original definition of |\SC@zfloat| ends with |\begin{lrbox}| which ends with |\ignore|\-|spaces|, +% we do have to end our re-definition of |\SC@zfloat| with |\ignore|\-|spaces| as well. +% \begin{macrocode} + \ignorespaces}% % \end{macrocode} % \end{macro} % |