| 1 |
%% |
| 2 |
%% This is file `caption-memoir.sto', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% caption-memoir.dtx (with options: `package') |
| 8 |
%% |
| 9 |
%% Copyright (C) 1994-2023 Axel Sommerfeldt ([email protected]) |
| 10 |
%% |
| 11 |
%% https://gitlab.com/axelsommerfeldt/caption |
| 12 |
%% |
| 13 |
%% -------------------------------------------------------------------------- |
| 14 |
%% |
| 15 |
%% This work may be distributed and/or modified under the |
| 16 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 17 |
%% of this license or (at your option) any later version. |
| 18 |
%% The latest version of this license is in |
| 19 |
%% http://www.latex-project.org/lppl.txt |
| 20 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 21 |
%% version 2003/12/01 or later. |
| 22 |
%% |
| 23 |
%% This work has the LPPL maintenance status "maintained". |
| 24 |
%% |
| 25 |
%% This Current Maintainer of this work is Axel Sommerfeldt. |
| 26 |
%% |
| 27 |
%% This work consists of the files |
| 28 |
%% caption.ins, caption.dtx, caption-light.dtx, caption2.dtx, caption3.dtx, |
| 29 |
%% caption-ams-smf.dtx, caption-beamer.dtx, caption-elsarticle.dtx, |
| 30 |
%% caption-koma.dtx, caption-memoir.dtx, caption-ntg.dtx, |
| 31 |
%% caption-thesis.dtx, bicaption.dtx, ltcaption.dtx, subcaption.dtx, |
| 32 |
%% the derived files |
| 33 |
%% caption.sty, caption-light.sty, caption2.sty, caption3.sty, |
| 34 |
%% caption-ams-smf.sto, caption-beamer.sto, caption-elsarticle.sto, |
| 35 |
%% caption-koma.sto, caption-memoir.sto, caption-ntg.sto, |
| 36 |
%% caption-thesis.sto, bicaption.sty, ltcaption.sty, subcaption.sty. |
| 37 |
%% |
| 38 |
\NeedsTeXFormat{LaTeX2e}[1994/12/01] |
| 39 |
\ProvidesFile{caption-memoir.sto}[2023/09/08 v2.2c Adaption of the caption package to the memoir document class (AR)] |
| 40 |
\providecommand*\AtCaptionSingleLineCheck{\g@addto@macro\caption@prepareslc} % for caption v3.5 |
| 41 |
\AtCaptionSingleLineCheck{% |
| 42 |
\let\pagenote\caption@gobble} |
| 43 |
\DeclareCaptionLabelSeparator{@contdelim}{\@contdelim} |
| 44 |
\SetCaptionDefault{labelseparator}{@contdelim} |
| 45 |
\let\caption@memoir@delim\captiondelim |
| 46 |
\renewcommand\captiondelim{% |
| 47 |
\captionsetup{labelsep=@contdelim}% |
| 48 |
\caption@memoir@delim} |
| 49 |
\DeclareCaptionLabelSeparator{gobble}{} |
| 50 |
\DeclareCaptionFont{@contnfont}{\@contnfont} |
| 51 |
\SetCaptionDefault{labelfont}{@contnfont} |
| 52 |
\DeclareCaptionFont{@conttfont}{\@conttfont} |
| 53 |
\SetCaptionDefault{textfont}{@conttfont} |
| 54 |
\let\caption@memoir@namefont\captionnamefont |
| 55 |
\renewcommand\captionnamefont{% |
| 56 |
\captionsetup{labelfont=@contnfont}% |
| 57 |
\caption@memoir@namefont} |
| 58 |
\let\caption@memoir@titlefont\captiontitlefont |
| 59 |
\renewcommand\captiontitlefont{% |
| 60 |
\captionsetup{textfont=@conttfont}% |
| 61 |
\caption@memoir@titlefont} |
| 62 |
\AtCaptionPackage{% |
| 63 |
\setlength\belowcaptionskip{0pt}} |
| 64 |
\@ifundefined{DeclareCaptionAutoPosition}{}{% |
| 65 |
\DeclareCaptionAutoPosition{% |
| 66 |
\ifvmode |
| 67 |
\ifdim\prevdepth>-99\p@#2\else#1\fi |
| 68 |
\else |
| 69 |
#2% |
| 70 |
\fi}}% |
| 71 |
\AtBeginDocument{\renewcommand*\endsidecaption{% |
| 72 |
\m@mscapend@fbox |
| 73 |
\caption@refstepcounter\@captype |
| 74 |
\m@mscaplabel |
| 75 |
\csname m@mscapcheckside\endcsname %<--- added 2012/08/19 |
| 76 |
\begin{lrbox}{\m@mscap@capbox}% |
| 77 |
\begin{minipage}[c]{\sidecapwidth}% |
| 78 |
\sidecapstyle |
| 79 |
\@caption\@captype[\m@mscap@fortoc]{\m@mscap@forcap} |
| 80 |
\end{minipage}% |
| 81 |
\end{lrbox}% |
| 82 |
\m@mscapopboxes}} |
| 83 |
\endinput |
| 84 |
%% |
| 85 |
%% End of file `caption-memoir.sto'. |