| 1 |
%% |
| 2 |
%% This is file `lwarp-caption.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `caption') |
| 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 |
\typeout{---} |
| 20 |
\typeout{Packages lwarp and caption:} |
| 21 |
\typeout{If a ``Missing \protect\begin\protect{document\protect}'' error occurs here,} |
| 22 |
\typeout{try using: \space \protect\usepackage\protect{caption\protect}\space% |
| 23 |
\protect\captionsetup{options}} |
| 24 |
\typeout{instead of: \protect\usepackage[options]\protect{caption\protect}.} |
| 25 |
\typeout{---} |
| 26 |
|
| 27 |
\LWR@ProvidesPackagePass{caption}[2023/08/05] |
| 28 |
\VerifyCommand[lwarp][caption]{\caption@iibox@}{AD79C5FACDA9F8F9977188D922E8AC12} |
| 29 |
|
| 30 |
\long\def\caption@iibox@#1#2#3#4{% |
| 31 |
\caption@iiibox{#1}{#2}{#3}% |
| 32 |
[]% lwarp |
| 33 |
[\captionbox@innerpos@default]% |
| 34 |
{{#4}}% lwarp |
| 35 |
} |
| 36 |
\VerifyCommand[lwarp][caption]{\caption@iiiibox}{62FC9237FCA80F5A607BF02D88C61601} |
| 37 |
|
| 38 |
\long\def\caption@iiiibox#1#2#3#4#5[#6][#7]#8{% |
| 39 |
\begingroup |
| 40 |
#1*% set \caption@position |
| 41 |
\caption@iftop{% |
| 42 |
\endgroup |
| 43 |
\minipagefullwidth% lwarp |
| 44 |
\parbox[t]{\linewidth}{% |
| 45 |
#1\relax |
| 46 |
\caption@setposition t% |
| 47 |
{\caption#4{#5}}% |
| 48 |
#8% |
| 49 |
}% |
| 50 |
}{% |
| 51 |
\endgroup |
| 52 |
\minipagefullwidth% lwarp |
| 53 |
\parbox[b]{\linewidth}{% lwarp |
| 54 |
#1\relax |
| 55 |
\caption@setposition b% |
| 56 |
#8% |
| 57 |
{\caption#4{#5}}% |
| 58 |
}% |
| 59 |
}% |
| 60 |
} |
| 61 |
|
| 62 |
\VerifyCommand[lwarp][caption]{\caption@makecaption}{9E0A92DF71E248B2C7A3B4BB5190A2C5} |
| 63 |
|
| 64 |
\long\def\caption@makecaption#1#2{% |
| 65 |
\caption@@make{#1}{#2}% |
| 66 |
} |
| 67 |
|
| 68 |
\AtBeginDocument{ |
| 69 |
\let\@makecaption\caption@makecaption |
| 70 |
} |
| 71 |
|
| 72 |
\AtBeginDocument{ |
| 73 |
\xapptocmd{\@xfloat} |
| 74 |
{\LWR@futurenonspacelet\LWR@mynexttoken\LWR@floatalignment} |
| 75 |
{} |
| 76 |
{\LWR@patcherror{caption}{@xfloat}} |
| 77 |
|
| 78 |
\xapptocmd{\@xdblfloat} |
| 79 |
{\LWR@futurenonspacelet\LWR@mynexttoken\LWR@floatalignment} |
| 80 |
{} |
| 81 |
{\LWR@patcherror{caption}{@xdblfloat}} |
| 82 |
} |
| 83 |
|
| 84 |
\VerifyCommand[lwarp][caption]{\caption@@@text}{C7253081E4F8EA695FF193E21855AA0A} |
| 85 |
|
| 86 |
\long\def\caption@@@text#1#2#3[#4]#5{% |
| 87 |
\begin{BlockClass}{figurecaption}% lwarp |
| 88 |
\begingroup |
| 89 |
#3{\csname c@#1\endcsname #4\relax}% |
| 90 |
#2{\caption@fnum{#1}}{#5}% |
| 91 |
\endgroup% |
| 92 |
\end{BlockClass}% lwarp |
| 93 |
} |
| 94 |
|
| 95 |
\caption@AtBeginDocument{ |
| 96 |
\IfPackageLoadedTF{lwarp-scrextend}{ |
| 97 |
\LetLtxMacro\captionbelow\caption |
| 98 |
\LetLtxMacro\captionabove\caption |
| 99 |
\LetLtxMacro\captionofbelow\captionof |
| 100 |
\LetLtxMacro\captionofabove\captionof |
| 101 |
}{} |
| 102 |
} |
| 103 |
|
| 104 |
\endinput |
| 105 |
%% |
| 106 |
%% End of file `lwarp-caption.sty'. |