summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/caption/caption-memoir.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/caption/caption-memoir.dtx')
-rw-r--r--Master/texmf-dist/source/latex/caption/caption-memoir.dtx29
1 files changed, 11 insertions, 18 deletions
diff --git a/Master/texmf-dist/source/latex/caption/caption-memoir.dtx b/Master/texmf-dist/source/latex/caption/caption-memoir.dtx
index 6905415fb11..4e341cb42ce 100644
--- a/Master/texmf-dist/source/latex/caption/caption-memoir.dtx
+++ b/Master/texmf-dist/source/latex/caption/caption-memoir.dtx
@@ -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,25 +287,22 @@
% 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}.)
-%
-% \begin{macrocode}
- \@ifundefined{DeclareCaptionAutoPosition}{}{%
- \DeclareCaptionAutoPosition{%
- \ifvmode
- \ifdim\prevdepth>-99\p@#2\else#1\fi
- \else
- #2%
- \fi}}%
-% \end{macrocode}
+% (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}}%
% \end{macrocode}
%
% \section{TODO}