blob: 9e0808fb78f0f1ccedc509021a163bc94280959f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
%%
%% This is file `lwarp-caption.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% lwarp.dtx (with options: `caption')
%% This is a generated file.
%% Copyright 2016-2019 Brian Dunn
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
\LWR@ProvidesPackagePass{caption}[2018/10/05]
\renewcommand\caption@ibox[3]{%
\@testopt{\caption@iibox{#1}{#2}{#3}}{%
\linewidth% lwarp
}%
}
\long\def\caption@iibox#1#2#3[#4]{%
\@testopt{\caption@iiibox{#1}{#2}{#3}{#4}}\captionbox@hj@default
}
\long\def\caption@iiibox#1#2#3#4[#5]#6{%
\begingroup
#1*% set \caption@position
\caption@iftop{%
\LWR@traceinfo{caption@iiibox top}%
\endgroup
\parbox[t]{#4}{%
#1\relax
\caption@setposition t%
{\caption#2{#3}}% lwarp
#6% lwarp
}%
}{%
\LWR@traceinfo{caption@iiibox bottom}%
\endgroup
\parbox[b]{#4}{%
#1\relax
\caption@setposition b%
#6% lwarp
{\caption#2{#3}}% lwarp
}%
}%
\LWR@traceinfo{caption@iiibox: done}%
}
\long\def\caption@@caption#1[#2]#3{%
\ifcaption@star
\else
\caption@prepareanchor{#1}{#2}%
\memcaptioninfo{#1}{\csname the#1\endcsname}{#2}{#3}%
\@nameuse{nag@hascaptiontrue}%
\fi
\par
\caption@beginex{#1}{#2}{#3}%
\caption@setfloatcapt{%
\caption@boxrestore
\if@minipage
\@setminipage
\fi
\caption@normalsize
\ifcaption@star
\let\caption@makeanchor\@firstofone
#3% lwarp
\else% lwarp
\@makecaption{\csname fnum@#1\endcsname}%
{\ignorespaces\caption@makeanchor{#3}}%
\fi% lwarp
\caption@if@minipage\@minipagetrue\@minipagefalse}%
\caption@end%
}
\renewcommand\caption@@@make[2]{%
\LWR@traceinfo{caption@@@make}%
\caption@ifempty{#2}{%
\let\caption@lsep\@empty
\let\caption@tfmt\@firstofone
}%
\caption@applyfont
{\ifcaption@star\else
\begingroup
\captionlabelfont
#1%
\endgroup
\fi}%
{\ifcaption@star\else
\begingroup
\caption@iflf\captionlabelfont
\relax
\caption@lsep
\endgroup
\fi}%
{{%
\captiontextfont
\caption@tfmt{#2}%
}}%
\LWR@traceinfo{caption@@@make done}%
}
\renewcommand{\caption@@make@}[2]{%
\caption@stepthecounter
\caption@beginhook
\caption@@@make{#1}{#2}%
\caption@endhook
}
\long\def\caption@makecaption#1#2{%
\caption@@make{#1}{#2}%
}
\DeclareCaptionBox{parbox}{%
#2%
}
\DeclareCaptionBox{colorbox}{%
#2%
}
\endinput
%%
%% End of file `lwarp-caption.sty'.
|