diff options
Diffstat (limited to 'macros/latex/contrib/caption/caption.dtx')
-rw-r--r-- | macros/latex/contrib/caption/caption.dtx | 65 |
1 files changed, 3 insertions, 62 deletions
diff --git a/macros/latex/contrib/caption/caption.dtx b/macros/latex/contrib/caption/caption.dtx index 4b59565b22..e56e11633a 100644 --- a/macros/latex/contrib/caption/caption.dtx +++ b/macros/latex/contrib/caption/caption.dtx @@ -31,7 +31,7 @@ % % \fi % -% \CheckSum{2869} +% \CheckSum{2840} % % \iffalse %<*driver> @@ -4481,7 +4481,7 @@ % \DoNotIndex{\@ehc,\@ehd,\@empty,\@esphack,\@expandtwoargs} % \DoNotIndex{\@for,\@firstofone,\@firstoftwo} % \DoNotIndex{\@gobble,\@gobblefour,\@gobbletwo,\@hangfrom} -% \DoNotIndex{\if@minipage\@ifnextchar,\@ifpackagelater,\@ifpackageloaded} +% \DoNotIndex{\if@minipage,\@ifnextchar,\@ifpackagelater,\@ifpackageloaded} % \DoNotIndex{\@ifstar,\@ifundefined,\@latex@error,\@minipagefalse,\@minipagetrue} % \DoNotIndex{\@namedef,\@nameuse} % \DoNotIndex{\@onlypreamble,\@parboxrestore,\@plus,\@ptionlist} @@ -4593,7 +4593,7 @@ % % Identify the current version of the package. % \begin{macrocode} -\ProvidesPackage{caption}[2022/02/20 v3.6 Customizing captions (AR)] +\ProvidesPackage{caption}[2022/02/28 v3.6a Customizing captions (AR)] % \end{macrocode} % % \subsection{Loading the kernel} @@ -4664,65 +4664,6 @@ #2% \fi}} % \end{macrocode} -% \begin{macrocode} -\def\caption@position@a{\caption@position@auto} % needed by floatrow package, \flrow@cappos -% \end{macrocode} -% -% \begin{macrocode} -\SetCaptionDefault{position}{auto} -% \end{macrocode} -% -% \begin{macro}{\caption@setautoposition} -% \changes{v3.1}{2007/06/10}{This macro added} -% \changes{v3.5}{2020/07/27}{Adapted to current implementation of `auto'} -% \changes{v3.6}{2021/01/03}{Adapted to current implementation of `auto'} -% |\caption@setautoposition|\marg{position}\\ -% replaces the above algorithm by a different one (or a fixed position setting). -% \begin{macrocode} -\newcommand*\caption@setautoposition[1]{% - \renewcommand*\caption@position@auto{% - \@nameuse{caption@position@#1}}} -% \end{macrocode} -% \end{macro} -% -% \begin{macro}{\caption@autoposition} -% \changes{v3.0a}{2004/01/23}{\cs{ifvmode} added} -% \changes{v3.0b}{2004/05/16}{Split into \cs{caption@fixposition} & \cs{caption@autoposition}} -% \changes{v3.5}{2020/07/27}{Adapted to current implementation of `auto'} -% \changes{v3.6}{2021/01/05}{Adapted to current implementation of `auto'; \cs{ifvmode} moved into definition of `auto'} -% We try to guess the current position of the caption by checking |\prev|\-|depth|. -% -% A different solution would be setting the |\space|\-|factor| to something -% not much less than 1000 (for example 994) in |\caption@start| and -% checking this value here by |\ifnum\space|\-|factor=994|. -% (It's implemented in the \package{threeparttable} package\cite{threeparttable} this way.) -% -% Another idea would be checking |\@if|\-|mini|\-|page|, but since some packages -% typeset the caption within a simple |\vbox| this does not seem to be a good one. -% \begin{macrocode} -\newcommand*\caption@autoposition[2]{% - \edef\caption@tempa{\the\prevdepth}% - \caption@Debug{\string\prevdepth=\caption@tempa}% - \ifdim\prevdepth>-\p@ - #2% position=bottom - \else - #1% position=top - \fi} -% \end{macrocode} -% \end{macro} -% -% \begin{macro}{\caption@autoposition} -% \changes{v3.6}{2021/01/05}{This macro added} -% |\DeclareCaptionAutoPosition|\marg{code with \#1 and \#2}\\ -% replaces the inner algorithm of |position=auto| with a custom one. -% If \#1 is applied the skip will be typeset below the caption -% (like |position=t|), if \#2 is applied the skip will by typeset -% above the caption (like |position=b|). -% \begin{macrocode} -\newcommand*\DeclareCaptionAutoPosition{% - \renewcommand*\caption@autoposition[2]}% -% \end{macrocode} -% \end{macro} % % \subsection{Declaration of options} % |