| 1 |
%% |
| 2 |
%% This is file `lwarp-caption3.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `caption3') |
| 8 |
%% This is a generated file. |
| 9 |
%% Copyright 2016-2026 Brian Dunn |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% http://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 17 |
%% version 2005/12/01 or later. |
| 18 |
|
| 19 |
\LWR@ProvidesPackagePass{caption3}[2023/07/31] |
| 20 |
\IfPackageAtLeastTF{caption3}{2020/08/23}{ |
| 21 |
\VerifyCommand[lwarp][caption3]{\caption@@@make}{F09A9BB05CE4EDF5A477D3CC2AE04F81} |
| 22 |
\renewcommand\caption@@@make[2]{% |
| 23 |
\LWR@traceinfo{caption@@@make}% |
| 24 |
\LWR@stoppars% lwarp |
| 25 |
\caption@ifempty{#2}{% |
| 26 |
\caption@set{labelseparator}{none}% |
| 27 |
\caption@set{textformat}{simple}% |
| 28 |
}% |
| 29 |
\caption@labelseparator % defines \caption@iflabelfont, |
| 30 |
\caption@applyfont |
| 31 |
{\ifcaption@star\else |
| 32 |
\begingroup |
| 33 |
\captionlabelfont |
| 34 |
\LWR@isolate{#1}% lwarp |
| 35 |
\endgroup |
| 36 |
\fi}% |
| 37 |
{\ifcaption@star\else |
| 38 |
\begingroup |
| 39 |
\caption@iflabelfont\captionlabelfont |
| 40 |
\relax\caption@labelsep |
| 41 |
\endgroup |
| 42 |
\fi}% |
| 43 |
{{\captiontextfont |
| 44 |
\let\\\newline% lwarp |
| 45 |
\caption@textstart |
| 46 |
\LWR@isolate{\caption@textformat{#2}}% lwarp |
| 47 |
\caption@textend}}% |
| 48 |
\LWR@startpars% lwarp |
| 49 |
\LWR@traceinfo{caption@@@make done}% |
| 50 |
} |
| 51 |
}% later than 2020/08/23 |
| 52 |
{% earlier than 2020/08/23 |
| 53 |
\renewcommand\caption@@@make[2]{% |
| 54 |
\LWR@traceinfo{caption@@@make}% |
| 55 |
\LWR@stoppars% lwarp |
| 56 |
\caption@ifempty{#2}{% |
| 57 |
\let\caption@lsep\@empty |
| 58 |
\let\caption@tfmt\@firstofone |
| 59 |
}% |
| 60 |
\caption@applyfont |
| 61 |
{\ifcaption@star\else |
| 62 |
\begingroup |
| 63 |
\captionlabelfont |
| 64 |
\LWR@isolate{#1}% lwarp |
| 65 |
\endgroup |
| 66 |
\fi}% |
| 67 |
{\ifcaption@star\else |
| 68 |
\begingroup |
| 69 |
\caption@iflf\captionlabelfont |
| 70 |
\relax |
| 71 |
\caption@lsep |
| 72 |
\endgroup |
| 73 |
\fi}% |
| 74 |
{{% |
| 75 |
\captiontextfont |
| 76 |
\let\\\newline% lwarp |
| 77 |
\LWR@isolate{\caption@tfmt{#2}}% lwarp |
| 78 |
}}% |
| 79 |
\LWR@startpars% lwarp |
| 80 |
\LWR@traceinfo{caption@@@make done}% |
| 81 |
} |
| 82 |
}% earlier than 2020/08/23 |
| 83 |
\VerifyCommand[lwarp][caption3]{\caption@@make@}{AD348E907B8F8B0BCAE57E72DE4A2035} |
| 84 |
\renewcommand{\caption@@make@}[2]{% |
| 85 |
\caption@stepthecounter% |
| 86 |
\caption@beginhook% |
| 87 |
\caption@@@make{#1}{#2}% |
| 88 |
\caption@endhook% |
| 89 |
} |
| 90 |
\DeclareCaptionBox{none}{#2} |
| 91 |
\DeclareCaptionBox{parbox}{% |
| 92 |
#2% |
| 93 |
} |
| 94 |
\DeclareCaptionBox{colorbox}{% |
| 95 |
#2% |
| 96 |
} |
| 97 |
|
| 98 |
\endinput |
| 99 |
%% |
| 100 |
%% End of file `lwarp-caption3.sty'. |