| 1 |
%% |
| 2 |
%% This is file `caption_2010-01-09.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% fallback/v3.1/caption.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 |
\ProvidesPackage{caption}[2023/08/05 v3.1o Customizing captions (AR)] |
| 40 |
\newcommand*\caption@Info[1]{\PackageInfo{caption}{#1\@gobble}} |
| 41 |
\@onlypreamble\caption@Info |
| 42 |
\RequirePackage{caption3}[=2008/08/24] % needs v1.1j or newer |
| 43 |
\caption@ifbool{documentclass}{}{% |
| 44 |
\caption@WarningNoLine{% |
| 45 |
Unsupported document class (or package) detected,\MessageBreak |
| 46 |
usage of the caption package is not recommended}% |
| 47 |
\caption@Info{\string\@makecaption\space=\space\meaning\@makecaption}% |
| 48 |
} |
| 49 |
\@ifpackageloaded{caption2}{% |
| 50 |
\caption@Error{% |
| 51 |
You can't use both, the (obsolete) caption2 *and*\MessageBreak |
| 52 |
the (current) caption package}% |
| 53 |
\endinput |
| 54 |
}{} |
| 55 |
\caption@AtBeginDocument{% |
| 56 |
\@ifpackageloaded{ftcap}{\caption@DisablePositionOption{ftcap}}{}% |
| 57 |
\@ifpackageloaded{nonfloat}{\caption@DisablePositionOption{nonfloat}}{}% |
| 58 |
\@ifpackageloaded{topcapt}{\caption@DisablePositionOption{topcapt}}{}} |
| 59 |
\newcommand*\caption@DisablePositionOption[1]{% |
| 60 |
\caption@Info{% |
| 61 |
`#1' package detected; setting `position=b' for compatibility reasons}% |
| 62 |
\caption@setposition b% |
| 63 |
\DeclareCaptionOption{position}{% |
| 64 |
\caption@Error{Usage of the `position' option is incompatible\MessageBreak |
| 65 |
to the `#1' package}}} |
| 66 |
\@onlypreamble\caption@DisablePositionOption |
| 67 |
\DeclareCaptionOption{figureposition}{% |
| 68 |
\captionsetup*[figure]{position=#1}} |
| 69 |
\@onlypreamble@key{caption}{figureposition} |
| 70 |
\DeclareCaptionOption{tableposition}{% |
| 71 |
\captionsetup*[table]{position=#1}} |
| 72 |
\@onlypreamble@key{caption}{tableposition} |
| 73 |
\DeclareCaptionOption{figurename}{\caption@SetName{figure}{#1}} |
| 74 |
\DeclareCaptionOption{tablename}{\caption@SetName{table}{#1}} |
| 75 |
\DeclareCaptionOption{name}{\caption@setname\@captype{#1}} |
| 76 |
\DeclareCaptionOption{listfigurename}{\caption@SetName{listfigure}{#1}} |
| 77 |
\DeclareCaptionOption{listtablename}{\caption@SetName{listtable}{#1}} |
| 78 |
\newcommand*\caption@SetName[2]{% |
| 79 |
\caption@setname{#1}{#2}% |
| 80 |
\begingroup |
| 81 |
\@ifundefined{languagename}{}{% |
| 82 |
\@ifundefined{captions\languagename}{}{% |
| 83 |
\expandafter\g@addto@macro\csname captions\languagename\endcsname |
| 84 |
{\caption@setname{#1}{#2}}}}% |
| 85 |
\endgroup} |
| 86 |
\newcommand*\caption@setname[2]{\@namedef{#1name}{#2}} |
| 87 |
\caption@AtBeginDocument{\let\caption@SetName\caption@setname} |
| 88 |
\newcommand*\caption@DeclareWithinOption[1]{% |
| 89 |
\DeclareCaptionOption{#1within}{\caption@Within{#1}{##1}}% |
| 90 |
\DeclareCaptionOption{#1without}{\caption@Within{#1}{none}}} |
| 91 |
\caption@DeclareWithinOption{figure} |
| 92 |
\caption@DeclareWithinOption{table} |
| 93 |
\DeclareCaptionOption{within}{% |
| 94 |
\@ifundefined{c@figure}{}{\caption@Within{figure}{#1}}% |
| 95 |
\@ifundefined{c@table}{}{\caption@Within{table}{#1}}% |
| 96 |
\caption@For{typelist}{\caption@Within{##1}{#1}}% |
| 97 |
\def\caption@within@default{#1}} |
| 98 |
\DeclareCaptionOption{without}{\KV@caption@within{none}} |
| 99 |
\newcommand*\caption@Within[1]{\def\caption@type{#1}\KV@caption@DCT@within} |
| 100 |
\DeclareCaptionOption*{config}[caption]{% |
| 101 |
\InputIfFileExists{#1.cfg}% |
| 102 |
{\typeout{*** Local configuration file #1.cfg used ***}}% |
| 103 |
{\caption@Warning{Configuration file #1.cfg not found}}} |
| 104 |
\DeclareCaptionOption{@minipage}{% |
| 105 |
\caption@ifinlist{#1}{auto,default}% |
| 106 |
{\let\caption@if@minipage\@gobbletwo}% |
| 107 |
{\caption@set@bool\caption@if@minipage{#1}}} |
| 108 |
\captionsetup{@minipage=default} |
| 109 |
\DeclareCaptionOption{compatibility}[1]{\caption@setbool{compatibility}{#1}} |
| 110 |
\@onlypreamble@key{caption}{compatibility} |
| 111 |
\DeclareCaptionOptionNoValue*{normal}{% |
| 112 |
\caption@setformat{plain}% |
| 113 |
\caption@setjustification{justified}} |
| 114 |
\DeclareCaptionOptionNoValue*{isu}{% |
| 115 |
\caption@setformat{hang}% |
| 116 |
\caption@setjustification{justified}} |
| 117 |
\DeclareCaptionOptionNoValue*{hang}{% |
| 118 |
\caption@setformat{hang}% |
| 119 |
\caption@setjustification{justified}} |
| 120 |
\DeclareCaptionOptionNoValue*{center}{% |
| 121 |
\caption@setformat{plain}% |
| 122 |
\caption@setjustification{centering}} |
| 123 |
\DeclareCaptionOptionNoValue*{anne}{% |
| 124 |
\caption@setformat{plain}% |
| 125 |
\caption@setjustification{centerlast}} |
| 126 |
\DeclareCaptionOptionNoValue*{centerlast}{% |
| 127 |
\caption@setformat{plain}% |
| 128 |
\caption@setjustification{centerlast}} |
| 129 |
\DeclareCaptionOptionNoValue*{scriptsize}{\def\captionfont{\scriptsize}} |
| 130 |
\DeclareCaptionOptionNoValue*{footnotesize}{\def\captionfont{\footnotesize}} |
| 131 |
\DeclareCaptionOptionNoValue*{small}{\def\captionfont{\small}} |
| 132 |
\DeclareCaptionOptionNoValue*{normalsize}{\def\captionfont{\normalsize}} |
| 133 |
\DeclareCaptionOptionNoValue*{large}{\def\captionfont{\large}} |
| 134 |
\DeclareCaptionOptionNoValue*{Large}{\def\captionfont{\Large}} |
| 135 |
\DeclareCaptionOptionNoValue*{up}{\l@addto@macro\captionlabelfont\upshape} |
| 136 |
\DeclareCaptionOptionNoValue*{it}{\l@addto@macro\captionlabelfont\itshape} |
| 137 |
\DeclareCaptionOptionNoValue*{sl}{\l@addto@macro\captionlabelfont\slshape} |
| 138 |
\DeclareCaptionOptionNoValue*{sc}{\l@addto@macro\captionlabelfont\scshape} |
| 139 |
\DeclareCaptionOptionNoValue*{md}{\l@addto@macro\captionlabelfont\mdseries} |
| 140 |
\DeclareCaptionOptionNoValue*{bf}{\l@addto@macro\captionlabelfont\bfseries} |
| 141 |
\DeclareCaptionOptionNoValue*{rm}{\l@addto@macro\captionlabelfont\rmfamily} |
| 142 |
\DeclareCaptionOptionNoValue*{sf}{\l@addto@macro\captionlabelfont\sffamily} |
| 143 |
\DeclareCaptionOptionNoValue*{tt}{\l@addto@macro\captionlabelfont\ttfamily} |
| 144 |
\DeclareCaptionOptionNoValue*{nooneline}{\caption@setbool{slc}{0}} |
| 145 |
\caption@setbool{ruled}{0} |
| 146 |
\DeclareCaptionOptionNoValue*{ruled}{\caption@setbool{ruled}{1}} |
| 147 |
\DeclareCaptionOptionNoValue*{flushleft}{% |
| 148 |
\caption@setformat{plain}% |
| 149 |
\caption@setjustification{raggedright}} |
| 150 |
\DeclareCaptionOptionNoValue*{flushright}{% |
| 151 |
\caption@setformat{plain}% |
| 152 |
\caption@setjustification{raggedleft}} |
| 153 |
\DeclareCaptionOptionNoValue*{oneline}{\caption@setbool{slc}{1}} |
| 154 |
\DeclareCaptionOptionNoValue*{ignoreLTcapwidth}{% |
| 155 |
\caption@WarningNoLine{Obsolete option `ignoreLTcapwidth' ignored}} |
| 156 |
\DeclareCaptionOption*{caption}{% |
| 157 |
\caption@setbool{temp}{#1}% |
| 158 |
\caption@ifbool{temp}{}{% |
| 159 |
\caption@Error{% |
| 160 |
The package option `caption=#1' is obsolete.\MessageBreak |
| 161 |
Please pass this option to the subfig package instead\MessageBreak |
| 162 |
and do *not* load the caption package anymore}}} |
| 163 |
\DeclareCaptionOption{FPlist}[1]{\caption@setFPoption{list}{#1}} |
| 164 |
\DeclareCaptionOption{FPref}[1]{\caption@setFPoption{ref}{#1}} |
| 165 |
\@onlypreamble@key{caption}{FPlist} |
| 166 |
\@onlypreamble@key{caption}{FPref} |
| 167 |
\newcommand*\caption@setFPoption[2]{% |
| 168 |
\edef\caption@tempa{\@car#2\@nil}% |
| 169 |
\caption@setbool{FP#1cap}{\if c\caption@tempa 1\else 0\fi}} |
| 170 |
\@onlypreamble\caption@setFPoption |
| 171 |
\captionsetup{FPlist=caption,FPref=figure} |
| 172 |
\DeclareCaptionOption{hypcap}[1]{\caption@setbool{hypcap}{#1}} |
| 173 |
\DeclareCaptionOption{hypcapspace}{\def\caption@hypcapspace{#1}} |
| 174 |
\captionsetup{hypcap=1,hypcapspace=.5\baselineskip} |
| 175 |
\caption@ifamsclass{% |
| 176 |
\caption@Info{AMS or SMF document class}% |
| 177 |
\setlength\belowcaptionskip{0pt}% set to 12pt by AMS class |
| 178 |
} |
| 179 |
\caption@ifkomaclass{% |
| 180 |
\caption@Info{KOMA-Script document class}% |
| 181 |
\g@addto@macro\@tablecaptionabovetrue{\captionsetup*[table]{position=t}} |
| 182 |
\g@addto@macro\@tablecaptionabovefalse{\captionsetup*[table]{position=b}} |
| 183 |
\if@tablecaptionabove |
| 184 |
\@tablecaptionabovetrue |
| 185 |
\else |
| 186 |
\@tablecaptionabovefalse |
| 187 |
\fi |
| 188 |
\g@addto@macro\onelinecaptionstrue{\let\caption@ifslc\@firstoftwo} |
| 189 |
\g@addto@macro\onelinecaptionsfalse{\let\caption@ifslc\@secondoftwo} |
| 190 |
\ifonelinecaptions |
| 191 |
\onelinecaptionstrue |
| 192 |
\else |
| 193 |
\onelinecaptionsfalse |
| 194 |
\fi |
| 195 |
\g@addto@macro\@captionabovetrue{\let\caption@position\@firstoftwo} |
| 196 |
\g@addto@macro\@captionabovefalse{\let\caption@position\@secondoftwo} |
| 197 |
\DeclareCaptionOption{figureposition}{% |
| 198 |
\caption@WarningNoLine{Option `figureposition=#1' has no effect\MessageBreak |
| 199 |
when used with a KOMA script document class}} |
| 200 |
\DeclareCaptionOption{tableposition}{% |
| 201 |
\caption@WarningNoLine{Option `tableposition=#1' has no effect\MessageBreak |
| 202 |
when used with a KOMA script document class}} |
| 203 |
\let\caption@KOMA@setcapindent\@setcapindent |
| 204 |
\renewcommand*\@setcapindent[1]{% |
| 205 |
\caption@KOMA@setcapindent{#1}\caption@setcapindent} |
| 206 |
\let\caption@KOMA@@setcapindent\@@setcapindent |
| 207 |
\renewcommand*\@@setcapindent[1]{% |
| 208 |
\caption@KOMA@@setcapindent{#1}\caption@setcapindent} |
| 209 |
\newcommand*\caption@setcapindent{% |
| 210 |
\captionsetup{indent=\ifdim\cap@indent<\z@\z@\else\cap@indent\fi}} |
| 211 |
\@ifundefined{cap@indent}{}{\caption@setcapindent} |
| 212 |
\expandafter\let\expandafter\caption@KOMA@setcapwidth |
| 213 |
\csname\string\setcapwidth\endcsname |
| 214 |
\@namedef{\string\setcapwidth}[#1]#2{% |
| 215 |
\caption@KOMA@setcapwidth[#1]{#2}\caption@setcapwidth{#1}} |
| 216 |
\newcommand*\caption@setcapwidth[1]{% |
| 217 |
\ifx\\#1\\\else |
| 218 |
\@ifundefined{cap@margin}{}{% |
| 219 |
\def\@tempa{captionbeside}% |
| 220 |
\ifx\@tempa\@currenvir\else\caption@Warning{% |
| 221 |
Ignoring optional argument [#1] of \string\setcapwidth\MessageBreak}% |
| 222 |
\fi}% |
| 223 |
\fi |
| 224 |
\captionsetup{width=\cap@width}} |
| 225 |
\def\caption@tempa{\hsize}% |
| 226 |
\ifx\caption@tempa\cap@width \else |
| 227 |
\caption@setcapwidth{?} |
| 228 |
\fi |
| 229 |
\expandafter\let\expandafter\caption@KOMA@setcapmargin |
| 230 |
\csname\string\@setcapmargin\endcsname |
| 231 |
\@namedef{\string\@setcapmargin}[#1]#2{% |
| 232 |
\caption@KOMA@setcapmargin[#1]{#2}\caption@setcapmargin} |
| 233 |
\expandafter\let\expandafter\caption@KOMA@@setcapmargin |
| 234 |
\csname\string\@@setcapmargin\endcsname |
| 235 |
\@namedef{\string\@@setcapmargin}[#1]#2{% |
| 236 |
\caption@KOMA@@setcapmargin[#1]{#2}\caption@setcapmargin} |
| 237 |
\newcommand*\caption@setcapmargin{% |
| 238 |
\begingroup |
| 239 |
\let\onelinecaptionsfalse\relax |
| 240 |
\def\@twoside{0}% |
| 241 |
\def\if@twoside{\def\@twoside{1}\iffalse}% |
| 242 |
\cap@margin |
| 243 |
\def\@tempa{\endgroup}% |
| 244 |
\ifx\cap@left\hfill\else\ifx\cap@right\hfill\else |
| 245 |
\def\hspace##1##{\@firstofone}% |
| 246 |
\edef\@tempa{\endgroup |
| 247 |
\noexpand\captionsetup{% |
| 248 |
twoside=\@twoside,slc=0,% |
| 249 |
margin={\cap@left,\cap@right}}}% |
| 250 |
\fi\fi |
| 251 |
\@tempa} |
| 252 |
\ifx\cap@margin\relax \else |
| 253 |
\caption@setcapmargin |
| 254 |
\fi |
| 255 |
} |
| 256 |
\caption@ProcessOptions*{caption} |
| 257 |
\caption@AtBeginDocument{% |
| 258 |
\DeclareCaptionOption{type}{\caption@settype{#1}}% |
| 259 |
\DeclareCaptionOption{type*}{\caption@settype*{#1}}% |
| 260 |
\DeclareCaptionOption{subtype}[sub\@captype]{\caption@setsubtype{#1}}% |
| 261 |
\DeclareCaptionOption{subtype*}[sub\@captype]{\caption@setsubtype*{#1}}% |
| 262 |
} |
| 263 |
\newcommand*\caption@settype{% |
| 264 |
\caption@@settype{}} |
| 265 |
\newcommand*\caption@setsubtype{% |
| 266 |
\caption@iftype |
| 267 |
{\caption@@settype{sub}}% |
| 268 |
{\caption@Error{Option `subtype=' outside float}}}% |
| 269 |
\newcommand*\caption@@settype[1]{% |
| 270 |
\caption@teststar{\caption@@@settype{#1}}\@firstoftwo\@secondoftwo} |
| 271 |
\newcommand*\caption@@@settype[3]{% |
| 272 |
\@ifundefined{c@#3}% |
| 273 |
{\caption@Error{No float type '#3' defined}}% |
| 274 |
{\caption@Debug{#1type=#3}% |
| 275 |
\caption@checkgrouplevel{#1}{% |
| 276 |
\captionsetup{#1type#2*\@empty=...}#2{ or |
| 277 |
\@backslashchar#1captionof}{}}% |
| 278 |
\edef\caption@tempa{#3}% |
| 279 |
\expandafter\ifx\csname @#1captype\endcsname\caption@tempa \else |
| 280 |
\ifcaptionsetup@star\else\@nameuse{caption@#1type@warning}\fi |
| 281 |
\fi |
| 282 |
\expandafter\let\csname @#1captype\endcsname\caption@tempa |
| 283 |
\@nameuse{caption@#1typehook}% |
| 284 |
\caption@setoptions{#3}% |
| 285 |
\ifx\caption@opt\relax |
| 286 |
\@nameundef{caption@#1type@warning}% |
| 287 |
\else |
| 288 |
\@namedef{caption@#1type@warning}{\caption@Warning{% |
| 289 |
The #1caption type was already set to |
| 290 |
`\csname @#1captype\endcsname'\MessageBreak}}% |
| 291 |
\fi |
| 292 |
\let\caption@ifrefstepcounter\@secondoftwo |
| 293 |
#2{}{% |
| 294 |
\let\@currentlabel\caption@undefinedlabel |
| 295 |
\ifx\caption@ORI@label\@undefined |
| 296 |
\let\caption@ORI@label\label |
| 297 |
\let\label\caption@xlabel |
| 298 |
\fi |
| 299 |
\caption@start}}} |
| 300 |
\newcommand*\caption@typehook{} |
| 301 |
\newcommand*\caption@iftype{% |
| 302 |
\@ifundefined{@captype}{\let\@captype\@undefined\@secondoftwo}\@firstoftwo} |
| 303 |
\begingroup\expandafter\expandafter\expandafter\endgroup |
| 304 |
\expandafter\ifx\csname currentgrouplevel\endcsname\relax |
| 305 |
\caption@Debug{TeX engine: TeX} |
| 306 |
\let\caption@checkgrouplevel\@gobbletwo |
| 307 |
\else |
| 308 |
\caption@Debug{TeX engine: e-TeX} |
| 309 |
\newcommand*\caption@checkgrouplevel[2]{% |
| 310 |
\@ifundefined{#1caption@grouplevel}{% |
| 311 |
\@ifundefined{caption@grouplevel}{\let\caption@grouplevel\z@}{}% |
| 312 |
\ifnum\currentgrouplevel>\caption@grouplevel\relax |
| 313 |
\expandafter\edef\csname #1caption@grouplevel\endcsname{% |
| 314 |
\the\currentgrouplevel}% |
| 315 |
\else |
| 316 |
\caption@Warning{\string#2\MessageBreak outside box or environment}% |
| 317 |
\fi |
| 318 |
}{}} |
| 319 |
\fi |
| 320 |
\newcommand*\caption@undefinedlabel{% |
| 321 |
\protect\caption@xref{\caption@labelname}{\on@line}} |
| 322 |
\DeclareRobustCommand*\caption@xref[2]{% |
| 323 |
\caption@WarningNoLine{\noexpand\label before \string\caption#2}% |
| 324 |
\@setref\relax\@undefined{#1}} |
| 325 |
\newcommand*\caption@labelname{??} |
| 326 |
\newcommand*\caption@xlabel[1]{% |
| 327 |
\caption@@xlabel |
| 328 |
\def\caption@labelname{#1}% |
| 329 |
\caption@ORI@label{#1}} |
| 330 |
\newcommand*\caption@@xlabel{% |
| 331 |
\global\let\caption@@xlabel\@empty |
| 332 |
\@bsphack |
| 333 |
\protected@write\@auxout{}% |
| 334 |
{\string\providecommand*\string\caption@xref[2]{% |
| 335 |
\string\@setref\string\relax\string\@undefined{\string##1}}}% |
| 336 |
\@esphack} |
| 337 |
\caption@AtBeginDocument{% |
| 338 |
\def\captionof{\caption@teststar\caption@of{\caption*}\caption}} |
| 339 |
\newcommand*\caption@of[2]{\caption@settype*{#2}#1} |
| 340 |
\newcommand*\captionlistentry{% |
| 341 |
\caption@teststar\@captionlistentry\@firstoftwo\@secondoftwo} |
| 342 |
\newcommand*\@captionlistentry[1]{% |
| 343 |
\@testopt{\caption@listentry{#1}}\@captype} |
| 344 |
\def\caption@listentry#1[#2]#3{% |
| 345 |
\@bsphack |
| 346 |
#1{\caption@gettitle{#3}}% |
| 347 |
{\caption@refstepcounter{#2}% |
| 348 |
\caption@makecurrent{#2}{#3}}% |
| 349 |
\caption@addcontentsline{#2}{#3}% |
| 350 |
\@esphack} |
| 351 |
\def\ContinuedFloat{% |
| 352 |
\@ifnextchar[\@Continued@Float\@ContinuedFloat} |
| 353 |
\def\@Continued@Float[#1]{\addtocounter{#1}\m@ne} |
| 354 |
\def\@ContinuedFloat{% |
| 355 |
\caption@iftype |
| 356 |
{\addtocounter\@captype\m@ne |
| 357 |
\caption@ContinuedFloat\@captype}% |
| 358 |
{\caption@Error{\noexpand\ContinuedFloat outside float}}} |
| 359 |
\def\caption@ContinuedFloat#1{% |
| 360 |
\@ifstar{\caption@Continued@Float@{#1}}{\caption@Continued@Float{#1}}} |
| 361 |
\def\caption@Continued@Float@{% |
| 362 |
\addtocounter\@captype\@ne |
| 363 |
\@stpelt{ContinuedFloat}\stepcounter{ContinuedFloat}% |
| 364 |
\def\caption@resetContinuedFloat##1{\xdef\caption@CFtype{##1}}% |
| 365 |
\caption@@ContinuedFloat} |
| 366 |
\def\caption@Continued@Float#1{% |
| 367 |
\edef\caption@tempa{#1}% |
| 368 |
\ifx\caption@tempa\caption@CFtype |
| 369 |
\stepcounter{ContinuedFloat}% |
| 370 |
\let\caption@resetContinuedFloat\@gobble |
| 371 |
\caption@@ContinuedFloat{#1}% |
| 372 |
\sf@ContinuedFloat{#1}% |
| 373 |
\else |
| 374 |
\caption@Error{Continued `#1' after `\caption@CFtype'}% |
| 375 |
\fi} |
| 376 |
\def\caption@@ContinuedFloat#1{% |
| 377 |
\expandafter\l@addto@macro\csname the#1\endcsname\theContinuedFloat |
| 378 |
\@ifundefined{theH#1}{}{% |
| 379 |
\expandafter\l@addto@macro\csname theH#1\endcsname{% |
| 380 |
\@alph\c@ContinuedFloat}}% |
| 381 |
\caption@setoptions{ContinuedFloat}% |
| 382 |
\caption@setoptions{continued#1}} |
| 383 |
\providecommand*\sf@ContinuedFloat[1]{} |
| 384 |
\newcommand*\caption@CFtype{??} |
| 385 |
\newcounter{ContinuedFloat} |
| 386 |
\let\theContinuedFloat\@empty |
| 387 |
\newcommand*\caption@resetContinuedFloat[1]{% |
| 388 |
\@stpelt{ContinuedFloat}\xdef\caption@CFtype{#1}} |
| 389 |
\newcommand*\caption@refstepcounter[1]{% |
| 390 |
\caption@resetContinuedFloat{#1}% |
| 391 |
\caption@@refstepcounter{#1}% |
| 392 |
\let\caption@ifrefstepcounter\@firstoftwo} |
| 393 |
\newcommand*\caption@@refstepcounter{\refstepcounter} |
| 394 |
\let\caption@ifrefstepcounter\@secondoftwo |
| 395 |
\@ifundefined{kernel@ifnextchar}% |
| 396 |
{\newcommand\caption@dblarg[1]{\@ifnextchar[{#1}{\caption@xdblarg{#1}}}}% |
| 397 |
{\newcommand\caption@dblarg[1]{\kernel@ifnextchar[{#1}{\caption@xdblarg{#1}}}}% |
| 398 |
\newcommand\caption@xdblarg[2]{#1[{#2\relax}]{#2}}% |
| 399 |
\newcommand*\caption@begin[1]{% |
| 400 |
\begingroup |
| 401 |
\caption@setfnum{#1}% |
| 402 |
\caption@fixposition |
| 403 |
\global\let\caption@fixedposition\caption@position} |
| 404 |
\newcommand\caption@beginex[3]{% |
| 405 |
\caption@begin{#1}% |
| 406 |
\caption@addcontentsline{#1}{#2}% |
| 407 |
\caption@ifempty{#3}{}} |
| 408 |
\newcommand*\caption@end{% |
| 409 |
\endgroup |
| 410 |
\let\caption@position\caption@fixedposition} |
| 411 |
\newcommand*\caption@setfnum[1]{% |
| 412 |
\@ifundefined{fnum@#1}{\iftrue}{\ifx\caption@lfmt\caption@lfmt@default\else}% |
| 413 |
\@namedef{fnum@#1}{\caption@fnum{#1}}% |
| 414 |
\fi} |
| 415 |
\newcommand*\caption@boxrestore{% |
| 416 |
\let\if@nobreak\iffalse |
| 417 |
\let\if@noskipsec\iffalse |
| 418 |
\let\par\@@par |
| 419 |
\parindent\z@ \parskip\z@skip |
| 420 |
\everypar{}% |
| 421 |
\leftskip\z@skip \rightskip\z@skip \@rightskip\z@skip |
| 422 |
\parfillskip\@flushglue \lineskip\normallineskip |
| 423 |
\baselineskip\normalbaselineskip |
| 424 |
\sloppy |
| 425 |
\let\\\@normalcr |
| 426 |
} |
| 427 |
\newcommand*\caption@normalsize{% |
| 428 |
\caption@font*{\KV@caption@fnt@normal\@unused}} |
| 429 |
\let\caption@setfloatcapt\@firstofone |
| 430 |
\newcommand*\caption@makecurrent[2]{} |
| 431 |
\let\caption@makeanchor\@firstofone |
| 432 |
\let\caption@start\relax |
| 433 |
\let\caption@@start\relax |
| 434 |
\let\caption@freezeHref\relax |
| 435 |
\let\caption@defrostHref\relax |
| 436 |
\newcommand\caption@gettitle[1]{% |
| 437 |
\@ifundefined{NR@gettitle}% |
| 438 |
{\@ifundefined{NR@sect}{}{\def\@currentlabelname{#1}}}% support for older versions of nameref package |
| 439 |
{\NR@gettitle{#1}}} % support for recent versions of nameref package |
| 440 |
\def\caption@caption{% |
| 441 |
\caption@iftype |
| 442 |
{\caption@checkgrouplevel\@empty\caption |
| 443 |
\caption@star |
| 444 |
{\caption@refstepcounter\@captype}% |
| 445 |
{\caption@dblarg{\@caption\@captype}}}% |
| 446 |
{\caption@Error{\noexpand\caption outside float}}}% |
| 447 |
\newcommand*\caption@star[2]{% |
| 448 |
\@ifstar{\global\caption@startrue#2[]}{#1#2}}% |
| 449 |
\long\def\caption@@caption#1[#2]#3{% |
| 450 |
\ifcaption@star \else |
| 451 |
\caption@prepareanchor{#1}{#2}% |
| 452 |
\fi |
| 453 |
\par |
| 454 |
\caption@beginex{#1}{#2}{#3}% |
| 455 |
\caption@setfloatcapt{% |
| 456 |
\caption@boxrestore |
| 457 |
\if@minipage |
| 458 |
\@setminipage |
| 459 |
\fi |
| 460 |
\caption@normalsize |
| 461 |
\ifcaption@star |
| 462 |
\let\caption@makeanchor\@firstofone |
| 463 |
\fi |
| 464 |
\@makecaption{\csname fnum@#1\endcsname}% |
| 465 |
{\ignorespaces\caption@makeanchor{#3}}\par |
| 466 |
\caption@if@minipage\@minipagetrue\@minipagefalse}% |
| 467 |
\caption@end}% |
| 468 |
\newcommand*\caption@prepareanchor[2]{% |
| 469 |
\caption@makecurrent{#1}{#2}% |
| 470 |
\caption@ifhypcap\caption@@start{}} |
| 471 |
\long\def\caption@makecaption#1#2{% |
| 472 |
\caption@iftop |
| 473 |
{\vskip\belowcaptionskip}% |
| 474 |
{\caption@rule\vskip\abovecaptionskip}% |
| 475 |
\caption@@make{#1}{#2}% |
| 476 |
\caption@iftop |
| 477 |
{\vskip\abovecaptionskip\caption@rule}% |
| 478 |
{\vskip\belowcaptionskip}} |
| 479 |
\newcommand*\caption@redefine{} |
| 480 |
\g@addto@macro\caption@redefine{% |
| 481 |
\caption@setbool{incompatible}{0}% |
| 482 |
\caption@CheckCommand\caption{% |
| 483 |
% ltfloat.dtx [2002/10/01 v1.1v LaTeX Kernel (Floats)] |
| 484 |
\def\caption{% |
| 485 |
\ifx\@captype\@undefined |
| 486 |
\@latex@error{\noexpand\caption outside float}\@ehd |
| 487 |
\expandafter\@gobble |
| 488 |
\else |
| 489 |
\refstepcounter\@captype |
| 490 |
\expandafter\@firstofone |
| 491 |
\fi |
| 492 |
{\@dblarg{\@caption\@captype}}% |
| 493 |
}}% |
| 494 |
\caption@CheckCommand\caption{% |
| 495 |
% beamerbaselocalstructure.sty,v 1.53 2007/01/28 20:48:21 tantau |
| 496 |
\def\caption{ |
| 497 |
\ifx\@captype\@undefined |
| 498 |
\@latex@error{\noexpand\caption outside figure or table}\@ehd |
| 499 |
\expandafter\@gobble |
| 500 |
\else |
| 501 |
\refstepcounter\@captype |
| 502 |
\expandafter\@firstofone |
| 503 |
\fi |
| 504 |
{\@dblarg{\@caption\@captype}}% |
| 505 |
}}% |
| 506 |
\caption@CheckCommand\caption{% |
| 507 |
% float.sty [2001/11/08 v1.3d Float enhancements (AL)] |
| 508 |
\renewcommand\caption{% |
| 509 |
\ifx\@captype\@undefined |
| 510 |
\@latex@error{\noexpand\caption outside float}\@ehd |
| 511 |
\expandafter\@gobble |
| 512 |
\else |
| 513 |
\refstepcounter\@captype |
| 514 |
\let\@tempf\@caption |
| 515 |
\expandafter\ifx\csname @float@c@\@captype\endcsname\relax\else |
| 516 |
\expandafter\expandafter\let |
| 517 |
\expandafter\@tempf\csname @float@c@\@captype\endcsname |
| 518 |
\fi |
| 519 |
\fi |
| 520 |
\@dblarg{\@tempf\@captype}}}% |
| 521 |
\caption@CheckCommand\caption{% |
| 522 |
% hyperref.sty [2007/02/27 v6.75t Hypertext links for LaTeX] |
| 523 |
% hyperref.sty [2007/04/09 v6.76a Hypertext links for LaTeX] |
| 524 |
% hyperref.sty [2007/06/12 v6.76h Hypertext links for LaTeX] |
| 525 |
\def\caption{% |
| 526 |
\ifx\@captype\@undefined |
| 527 |
\@latex@error{\noexpand\caption outside float}\@ehd |
| 528 |
\expandafter\@gobble |
| 529 |
\else |
| 530 |
\H@refstepcounter\@captype |
| 531 |
\@ifundefined{fst@\@captype}{% |
| 532 |
\let\Hy@tempa\@caption |
| 533 |
}{% |
| 534 |
\let\Hy@tempa\Hy@float@caption |
| 535 |
}% |
| 536 |
\expandafter\@firstofone |
| 537 |
\fi |
| 538 |
{\@dblarg{\Hy@tempa\@captype}}% |
| 539 |
}}% |
| 540 |
\caption@CheckCommand\caption{% |
| 541 |
% hyperref.sty [2007/08/05 v6.76j Hypertext links for LaTeX] |
| 542 |
\def\caption{% |
| 543 |
\ifx\@captype\@undefined |
| 544 |
\@latex@error{\noexpand\caption outside float}\@ehd |
| 545 |
\expandafter\@gobble |
| 546 |
\else |
| 547 |
\H@refstepcounter\@captype |
| 548 |
\let\Hy@tempa\@caption |
| 549 |
\@ifundefined{float@caption}{% |
| 550 |
}{% |
| 551 |
\expandafter\ifx\csname @float@c@\@captype\endcsname\float@caption |
| 552 |
\let\Hy@tempa\Hy@float@caption |
| 553 |
\fi |
| 554 |
}% |
| 555 |
\expandafter\@firstofone |
| 556 |
\fi |
| 557 |
{\@dblarg{\Hy@tempa\@captype}}% |
| 558 |
}}% |
| 559 |
\caption@IfCheckCommand{}{% |
| 560 |
\caption@Info{% |
| 561 |
Incompatible package detected (regarding \string\caption).\MessageBreak |
| 562 |
\string\caption\space=\space\meaning\caption}% |
| 563 |
\caption@setbool{incompatible}{1}}% |
| 564 |
\caption@CheckCommand\@caption{% |
| 565 |
% ltfloat.dtx [2002/10/01 v1.1v LaTeX Kernel (Floats)] |
| 566 |
\long\def\@caption#1[#2]#3{% |
| 567 |
\par |
| 568 |
\addcontentsline{\csname ext@#1\endcsname}{#1}% |
| 569 |
{\protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}}% |
| 570 |
\begingroup |
| 571 |
\@parboxrestore |
| 572 |
\if@minipage |
| 573 |
\@setminipage |
| 574 |
\fi |
| 575 |
\normalsize |
| 576 |
\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par |
| 577 |
\endgroup}}% |
| 578 |
\caption@CheckCommand\@caption{% |
| 579 |
% beamerbaselocalstructure.sty,v 1.53 2007/01/28 20:48:21 tantau |
| 580 |
\long\def\@caption#1[#2]#3{% second argument ignored |
| 581 |
\par\nobreak |
| 582 |
\begingroup |
| 583 |
\@parboxrestore |
| 584 |
\if@minipage |
| 585 |
\@setminipage |
| 586 |
\fi |
| 587 |
\beamer@makecaption{#1}{\ignorespaces #3}\par\nobreak |
| 588 |
\endgroup}}% |
| 589 |
\caption@CheckCommand\@caption{% |
| 590 |
% hyperref.sty [2007/02/27 v6.75t Hypertext links for LaTeX] |
| 591 |
\long\def\@caption#1[#2]#3{% |
| 592 |
\hyper@makecurrent{\@captype}% |
| 593 |
\def\@currentlabelname{#2}% |
| 594 |
\par\addcontentsline{\csname ext@#1\endcsname}{#1}{% |
| 595 |
\protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}% |
| 596 |
}% |
| 597 |
\begingroup |
| 598 |
\@parboxrestore |
| 599 |
\if@minipage |
| 600 |
\@setminipage |
| 601 |
\fi |
| 602 |
\normalsize |
| 603 |
\@makecaption{\csname fnum@#1\endcsname}{% |
| 604 |
\ignorespaces |
| 605 |
\ifHy@nesting |
| 606 |
\hyper@@anchor{\@currentHref}{#3}% |
| 607 |
\else |
| 608 |
\Hy@raisedlink{\hyper@@anchor{\@currentHref}{\relax}}#3% |
| 609 |
\fi |
| 610 |
}% |
| 611 |
\par |
| 612 |
\endgroup |
| 613 |
}}% |
| 614 |
\caption@CheckCommand\@caption{% |
| 615 |
% hyperref.sty [2007/04/09 v6.76a Hypertext links for LaTeX] |
| 616 |
% hyperref.sty [2007/06/12 v6.76h Hypertext links for LaTeX] |
| 617 |
% hyperref.sty [2007/08/05 v6.76j Hypertext links for LaTeX] |
| 618 |
\long\def\@caption#1[#2]#3{% |
| 619 |
\expandafter\ifx\csname if@capstart\expandafter\endcsname |
| 620 |
\csname iftrue\endcsname |
| 621 |
\global\let\@currentHref\hc@currentHref |
| 622 |
\else |
| 623 |
\hyper@makecurrent{\@captype}% |
| 624 |
\fi |
| 625 |
\def\@currentlabelname{#2}% |
| 626 |
\par\addcontentsline{\csname ext@#1\endcsname}{#1}{% |
| 627 |
\protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}% |
| 628 |
}% |
| 629 |
\begingroup |
| 630 |
\@parboxrestore |
| 631 |
\if@minipage |
| 632 |
\@setminipage |
| 633 |
\fi |
| 634 |
\normalsize |
| 635 |
\expandafter\ifx\csname if@capstart\expandafter\endcsname |
| 636 |
\csname iftrue\endcsname |
| 637 |
\global\@capstartfalse |
| 638 |
\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces#3}% |
| 639 |
\else |
| 640 |
\@makecaption{\csname fnum@#1\endcsname}{% |
| 641 |
\ignorespaces |
| 642 |
\ifHy@nesting |
| 643 |
\hyper@@anchor{\@currentHref}{#3}% |
| 644 |
\else |
| 645 |
\Hy@raisedlink{\hyper@@anchor{\@currentHref}{\relax}}#3% |
| 646 |
\fi |
| 647 |
}% |
| 648 |
\fi |
| 649 |
\par |
| 650 |
\endgroup |
| 651 |
}}% |
| 652 |
\caption@CheckCommand\@caption{% |
| 653 |
% hyperref.sty [2009/11/27 v6.79k Hypertext links for LaTeX] |
| 654 |
\long\def\@caption#1[#2]#3{% |
| 655 |
\expandafter\ifx\csname if@capstart\expandafter\endcsname |
| 656 |
\csname iftrue\endcsname |
| 657 |
\global\let\@currentHref\hc@currentHref |
| 658 |
\else |
| 659 |
\hyper@makecurrent{\@captype}% |
| 660 |
\fi |
| 661 |
\def\@currentlabelname{#2}% |
| 662 |
\par\addcontentsline{\csname ext@#1\endcsname}{#1}{% |
| 663 |
\protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}% |
| 664 |
}% |
| 665 |
\begingroup |
| 666 |
\@parboxrestore |
| 667 |
\if@minipage |
| 668 |
\@setminipage |
| 669 |
\fi |
| 670 |
\normalsize |
| 671 |
\expandafter\ifx\csname if@capstart\expandafter\endcsname |
| 672 |
\csname iftrue\endcsname |
| 673 |
\global\@capstartfalse |
| 674 |
\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces#3}% |
| 675 |
\else |
| 676 |
\@makecaption{\csname fnum@#1\endcsname}{% |
| 677 |
\ignorespaces |
| 678 |
\ifHy@nesting |
| 679 |
\expandafter\hyper@@anchor\expandafter{\@currentHref}{#3}% |
| 680 |
\else |
| 681 |
\Hy@raisedlink{% |
| 682 |
\expandafter\hyper@@anchor\expandafter{\@currentHref}{\relax}% |
| 683 |
}% |
| 684 |
#3% |
| 685 |
\fi |
| 686 |
}% |
| 687 |
\fi |
| 688 |
\par |
| 689 |
\endgroup |
| 690 |
}}% |
| 691 |
\caption@CheckCommand\@caption{% |
| 692 |
% hyperref.sty [2009/12/09 v6.79m Hypertext links for LaTeX] |
| 693 |
% hyperref.sty [2009/12/28 v6.79z Hypertext links for LaTeX] |
| 694 |
\long\def\@caption#1[#2]#3{% |
| 695 |
\expandafter\ifx\csname if@capstart\expandafter\endcsname |
| 696 |
\csname iftrue\endcsname |
| 697 |
\global\let\@currentHref\hc@currentHref |
| 698 |
\else |
| 699 |
\hyper@makecurrent{\@captype}% |
| 700 |
\fi |
| 701 |
\@ifundefined{NR@gettitle}{% |
| 702 |
\def\@currentlabelname{#2}% |
| 703 |
}{% |
| 704 |
\NR@gettitle{#2}% |
| 705 |
}% |
| 706 |
\par\addcontentsline{\csname ext@#1\endcsname}{#1}{% |
| 707 |
\protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}% |
| 708 |
}% |
| 709 |
\begingroup |
| 710 |
\@parboxrestore |
| 711 |
\if@minipage |
| 712 |
\@setminipage |
| 713 |
\fi |
| 714 |
\normalsize |
| 715 |
\expandafter\ifx\csname if@capstart\expandafter\endcsname |
| 716 |
\csname iftrue\endcsname |
| 717 |
\global\@capstartfalse |
| 718 |
\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces#3}% |
| 719 |
\else |
| 720 |
\@makecaption{\csname fnum@#1\endcsname}{% |
| 721 |
\ignorespaces |
| 722 |
\ifHy@nesting |
| 723 |
\expandafter\hyper@@anchor\expandafter{\@currentHref}{#3}% |
| 724 |
\else |
| 725 |
\Hy@raisedlink{% |
| 726 |
\expandafter\hyper@@anchor\expandafter{% |
| 727 |
\@currentHref |
| 728 |
}{\relax}% |
| 729 |
}% |
| 730 |
#3% |
| 731 |
\fi |
| 732 |
}% |
| 733 |
\fi |
| 734 |
\par |
| 735 |
\endgroup |
| 736 |
}}% |
| 737 |
\caption@CheckCommand\@caption{% |
| 738 |
% nameref.sty [2006/12/27 v2.28 Cross-referencing by name of section] |
| 739 |
\long\def\@caption#1[#2]{% |
| 740 |
\def\@currentlabelname{#2}% |
| 741 |
\NR@@caption{#1}[{#2}]% |
| 742 |
}}% |
| 743 |
\caption@CheckCommand\@caption{% |
| 744 |
% nameref.sty [2009/11/27 v2.32 Cross-referencing by name of section] |
| 745 |
\long\def\@caption#1[#2]{% |
| 746 |
\NR@gettitle{#2}% |
| 747 |
\NR@@caption{#1}[{#2}]% |
| 748 |
}}% |
| 749 |
\caption@CheckCommand\@caption{% |
| 750 |
% subfigure.sty [2002/07/30 v2.1.4 subfigure package] |
| 751 |
\long\def\@caption#1[#2]#3{% |
| 752 |
\@ifundefined{if#1topcap}% |
| 753 |
{\subfig@oldcaption{#1}[{#2}]{#3}}% |
| 754 |
{\@nameuse{if#1topcap}% |
| 755 |
\@listsubcaptions{#1}% |
| 756 |
\subfig@oldcaption{#1}[{#2}]{#3}% |
| 757 |
\else |
| 758 |
\subfig@oldcaption{#1}[{#2}]{#3}% |
| 759 |
\@listsubcaptions{#1}% |
| 760 |
\fi}}}% |
| 761 |
\caption@CheckCommand\@caption{% |
| 762 |
% subfig.sty [2005/06/28 ver: 1.3 subfig package] |
| 763 |
\def\@caption{\caption@}% |
| 764 |
}% |
| 765 |
\caption@IfCheckCommand{}{% |
| 766 |
\caption@Info{% |
| 767 |
Incompatible package detected (regarding \string\@caption).\MessageBreak |
| 768 |
\string\@caption\space=\space\meaning\@caption}% |
| 769 |
\caption@setbool{incompatible}{1}}% |
| 770 |
\@ifundefined{caption@ifcompatibility}% |
| 771 |
{\let\caption@ifcompatibility\caption@ifincompatible |
| 772 |
\let\caption@tempa\caption@WarningNoLine}% |
| 773 |
{\let\caption@tempa\@gobble}% suppress warning |
| 774 |
\caption@ifcompatibility{% |
| 775 |
\caption@tempa{% |
| 776 |
\noexpand\caption will not be redefined since it's already\MessageBreak |
| 777 |
redefined by a document class or package which is\MessageBreak |
| 778 |
unknown to the caption package}% |
| 779 |
\renewcommand*\caption@redefine{}% |
| 780 |
\renewcommand*\caption@ContinuedFloat[1]{% |
| 781 |
\caption@Error{Not available in compatibility mode}}% |
| 782 |
\caption@AtBeginDocument*{% |
| 783 |
\let\caption@start\relax |
| 784 |
\@ifundefined{caption@ORI@capstart}{}{% |
| 785 |
\caption@Debug{% |
| 786 |
Restore hypcap definition of \string\capstart\@gobble}% |
| 787 |
\let\capstart\caption@ORI@capstart}% |
| 788 |
\@ifundefined{caption@ORI@float@makebox}{}{% |
| 789 |
\caption@Debug{% |
| 790 |
Restore hyperref redefinition of \string\float@makebox\@gobble}% |
| 791 |
\let\float@makebox\caption@ORI@float@makebox}% |
| 792 |
}% |
| 793 |
\renewcommand*\caption@star[2]{#1#2}% |
| 794 |
}{% |
| 795 |
\caption@ifincompatible{% |
| 796 |
\caption@WarningNoLine{% |
| 797 |
Forced redefinition of \noexpand\caption since the\MessageBreak |
| 798 |
unsupported(!) package option `compatibility=false'\MessageBreak |
| 799 |
was given}% |
| 800 |
}{}% |
| 801 |
\renewcommand*\caption@redefine{% |
| 802 |
\let\caption\caption@caption |
| 803 |
\let\@caption\caption@@caption}% |
| 804 |
\caption@redefine |
| 805 |
}% |
| 806 |
\caption@AtBeginDocument*{% |
| 807 |
\let\caption@ORI@capstart\@undefined |
| 808 |
\let\caption@ORI@float@makebox\@undefined}% |
| 809 |
\let\caption@ORI@xfloat\@xfloat |
| 810 |
\def\@xfloat#1[#2]{% |
| 811 |
\caption@ORI@xfloat{#1}[#2]% |
| 812 |
\caption@settype{#1}}% |
| 813 |
} |
| 814 |
\caption@AtBeginDocument{\caption@redefine} |
| 815 |
\let\@makecaption\caption@makecaption |
| 816 |
\def\caption@DeclareSubType sub#1\@nil{% |
| 817 |
\caption@Debug{Initializing subtype for `#1'\@gobble}% |
| 818 |
\@namedef{caption@c@#1}{0}% |
| 819 |
\@namedef{caption@beginsub#1}{\caption@beginsubfloat{#1}}} |
| 820 |
\@onlypreamble\caption@DeclareSubType |
| 821 |
\caption@For*{subtypelist}{\caption@DeclareSubType sub#1\@nil} |
| 822 |
\caption@AtBeginDocument*{% |
| 823 |
\@ifundefined{sf@counterlist}{}{% |
| 824 |
\@for\sf@temp:=\sf@counterlist\do{% |
| 825 |
\expandafter\caption@DeclareSubType\sf@temp\@nil}}} |
| 826 |
\newcommand*\caption@subtypehook{% |
| 827 |
\ifx\caption\caption@subcaption \else |
| 828 |
\caption@ifrefstepcounter{}{% |
| 829 |
% no \caption or \subcaption in this (floating) environment yet |
| 830 |
\caption@Debug{Increment \@captype\ counter =\the\value\@captype}% |
| 831 |
\caption@l@stepcounter\@captype |
| 832 |
\let\addcontentsline\caption@addsubcontentsline}% |
| 833 |
\ifnum\csname caption@c@\@captype\endcsname=\value\@captype \else |
| 834 |
\caption@Debug{Reset sub\@captype\ counter}% |
| 835 |
\expandafter\xdef\csname caption@c@\@captype\endcsname{% |
| 836 |
\the\value\@captype}% |
| 837 |
\@stpelt\@subcaptype |
| 838 |
\fi |
| 839 |
\c@ContinuedFloat=0\relax |
| 840 |
\let\caption@resetContinuedFloat\@gobble |
| 841 |
\let\caption@addcontentsline\caption@kernel@addcontentsline |
| 842 |
\let\caption@setfloatcapt\@firstofone |
| 843 |
\caption@clearmargin |
| 844 |
\caption@iflist{}{\let\caption@setlist\@gobble}% |
| 845 |
\caption@setoptions{sub}% |
| 846 |
\caption@setoptions{subfloat}% for subfig-package compatibility |
| 847 |
\let\caption\caption@subcaption |
| 848 |
\let\@makecaption\caption@makecaption |
| 849 |
\fi}% |
| 850 |
\newcommand*\caption@subcaption{% |
| 851 |
\caption@iftype |
| 852 |
{\caption@checkgrouplevel{sub}\subcaption |
| 853 |
\caption@star |
| 854 |
{\caption@refstepcounter\@subcaptype}% |
| 855 |
{\caption@dblarg{\@caption\@subcaptype}}}% |
| 856 |
{\caption@Error{\noexpand\subcaption outside float}}} |
| 857 |
\let\caption@kernel@addcontentsline\caption@addcontentsline |
| 858 |
\renewcommand*\caption@addcontentsline[2]{% |
| 859 |
\sf@ifpositiontop{\@listsubcaptions{#1}}{}% |
| 860 |
\caption@kernel@addcontentsline{#1}{#2}% |
| 861 |
\sf@ifpositiontop{}{\@listsubcaptions{#1}}% |
| 862 |
\caption@addsubcontentslines{#1}} |
| 863 |
\newcommand*\caption@addsubcontentslines[1]{% |
| 864 |
\begingroup |
| 865 |
\caption@subcontentslines |
| 866 |
\endgroup |
| 867 |
\caption@clearsubcontentslines}% |
| 868 |
\caption@AtBeginDocument*{% |
| 869 |
\@ifundefined{sf@ifpositiontop}{\let\sf@ifpositiontop\@gobbletwo}{}% |
| 870 |
\caption@clearsubcontentslines |
| 871 |
\g@addto@macro\caption@typehook{\caption@checksubcontentslines}% |
| 872 |
\AtEndDocument{\caption@checksubcontentslines}}% |
| 873 |
\newcommand*\caption@addsubcontentsline[3]{% |
| 874 |
\begingroup |
| 875 |
\let\label\@gobble \let\index\@gobble \let\glossary\@gobble |
| 876 |
\protected@edef\@tempa{\endgroup |
| 877 |
\noexpand\g@addto@macro\noexpand\caption@subcontentslines{% |
| 878 |
\noexpand\@namedef{the#2}{\csname the#2\endcsname}% |
| 879 |
\ifx\@currentHref\@undefined \else |
| 880 |
\noexpand\def\noexpand\@currentHref{\@currentHref}% |
| 881 |
\fi |
| 882 |
\protect\addcontentsline{#1}{#2}{#3}}}% |
| 883 |
\@tempa} |
| 884 |
\newcommand*\caption@checksubcontentslines{% |
| 885 |
\ifx\caption@subcontentslines\@empty \else |
| 886 |
\caption@Error{% |
| 887 |
Something's wrong--perhaps a missing \protect\caption\MessageBreak |
| 888 |
in the last figure or table}% |
| 889 |
\caption@clearsubcontentslines |
| 890 |
\fi} |
| 891 |
\newcommand*\caption@clearsubcontentslines{% |
| 892 |
\global\let\caption@subcontentslines\@empty} |
| 893 |
\@ifundefined{smf@makecaption}{}{\let\smf@makecaption\@makecaption} |
| 894 |
\@ifclassloaded{beamer}{% |
| 895 |
\caption@Info{beamer document class}% |
| 896 |
\captionsetup{list=false} |
| 897 |
\DeclareCaptionOption{list}[1]{} |
| 898 |
\DeclareCaptionOption{listof}[1]{} |
| 899 |
\expandafter\let\expandafter\caption@ORI@figure |
| 900 |
\csname\string\figure\endcsname |
| 901 |
\@namedef{\string\figure}[#1]{% |
| 902 |
\caption@ORI@figure[#1]% |
| 903 |
\caption@settype{figure}} |
| 904 |
\expandafter\let\expandafter\caption@ORI@table |
| 905 |
\csname\string\table\endcsname |
| 906 |
\@namedef{\string\table}[#1]{% |
| 907 |
\caption@ORI@table[#1]% |
| 908 |
\caption@settype{table}} |
| 909 |
}{} |
| 910 |
\@ifundefined{scr@caption}{}{% |
| 911 |
\caption@AtBeginDocument{\let\scr@caption\caption}} |
| 912 |
\@nameuse{caption@frenchb}\@nameundef{caption@frenchb} |
| 913 |
\caption@AtBeginDocument{\@ifundefined{frenchTeXmods}{}{% |
| 914 |
\caption@Info{frenchle/pro package is loaded}% |
| 915 |
\let\captionfont@ORI\captionfont |
| 916 |
\let\captionlabelfont@ORI\captionlabelfont |
| 917 |
\let\@makecaption@ORI\@makecaption |
| 918 |
|
| 919 |
\@ifundefined{GOfrench}% |
| 920 |
{\let\caption@tempa\@firstofone}% |
| 921 |
{\def\caption@tempa{\g@addto@macro\GOfrench}}% |
| 922 |
\caption@tempa{% |
| 923 |
\let\captionfont\captionfont@ORI |
| 924 |
\let\captionfont@ORI\@undefined |
| 925 |
\let\captionlabelfont\captionlabelfont@ORI |
| 926 |
\let\captionlabelfont@ORI\@undefined |
| 927 |
\let\@makecaption\@makecaption@ORI |
| 928 |
\let\@makecaption@ORI\@undefined |
| 929 |
\let\@cnORI\caption |
| 930 |
\let\caption@tcORI\@tablescaption |
| 931 |
\def\@tablescaption{\caption@star\relax\caption@tcORI}% |
| 932 |
\let\@eatDP\@undefined |
| 933 |
\let\caption@tempa\@empty |
| 934 |
\ifx\f@ffrench\fnum@figure |
| 935 |
\l@addto@macro\caption@tempa{\let\fnum@figure\f@ffrench}% |
| 936 |
\fi |
| 937 |
\ifx\f@tfrench\fnum@table |
| 938 |
\l@addto@macro\caption@tempa{\let\fnum@table\f@tfrench}% |
| 939 |
\fi |
| 940 |
\def\f@ffrench{\ifx\listoffigures\relax\else\figurename~\thefigure\fi}% |
| 941 |
\def\f@tfrench{\ifx\listoftables\relax\else\tablename~\thetable\fi}% |
| 942 |
\caption@tempa |
| 943 |
}% |
| 944 |
}} |
| 945 |
\newcommand\caption@IfPackageLoaded[1]{% |
| 946 |
\@testopt{\caption@@IfPackageLoaded{#1}}{}} |
| 947 |
\@onlypreamble\caption@IfPackageLoaded |
| 948 |
\long\def\caption@@IfPackageLoaded#1[#2]#3#4{% |
| 949 |
\@ifpackageloaded{#1}\@firstofone{% |
| 950 |
\caption@Debug{#1 package is not loaded (yet)\@gobble}% |
| 951 |
\caption@AtBeginDocument}{% |
| 952 |
\caption@@ifpackageloaded{#1}[#2]{#3}{#4}}} |
| 953 |
\@onlypreamble\caption@@IfPackageLoaded |
| 954 |
\newcommand\caption@ifpackageloaded[1]{% |
| 955 |
\@testopt{\caption@@ifpackageloaded{#1}}{}} |
| 956 |
\@onlypreamble\caption@ifpackageloaded |
| 957 |
\long\def\caption@@ifpackageloaded#1[#2]{% |
| 958 |
\@ifpackageloaded{#1}{% |
| 959 |
\caption@Info{#1 package is loaded}% |
| 960 |
\@ifpackagelater{#1}{#2}\@firstoftwo{% |
| 961 |
\caption@Error{% |
| 962 |
For a successful cooperation we need at least version\MessageBreak |
| 963 |
`#2' of package #1,\MessageBreak |
| 964 |
but only version\MessageBreak |
| 965 |
`\csname ver@#1.\@pkgextension\endcsname'\MessageBreak |
| 966 |
is available}% |
| 967 |
\@secondoftwo}% |
| 968 |
}{\@secondoftwo}} |
| 969 |
\@onlypreamble\caption@@ifpackageloaded |
| 970 |
\newcommand*\caption@clearmargin{% |
| 971 |
\setcaptionmargin\z@ |
| 972 |
\let\caption@minmargin\@undefined} |
| 973 |
\caption@setbool{needfreeze}{0} |
| 974 |
\caption@AtBeginDocument*{% |
| 975 |
\caption@ifneedfreeze{% |
| 976 |
\newcommand*\caption@freeze{% |
| 977 |
\caption@teststar\caption@@freeze\@gobble\@firstofone}% |
| 978 |
\newcommand*\caption@@freeze[1]{% |
| 979 |
\global\let\caption@SCcontinued\relax |
| 980 |
\global\let\caption@SCsetup\@undefined |
| 981 |
\global\let\caption@SClentry\@undefined |
| 982 |
\global\let\caption@SCtext\@undefined |
| 983 |
\global\let\caption@SClabel\@undefined |
| 984 |
\let\caption@ORI@ContinuedFloat\ContinuedFloat |
| 985 |
\def\ContinuedFloat{% |
| 986 |
\caption@withoptargs\caption@SC@ContinuedFloat}% |
| 987 |
\def\caption@SC@ContinuedFloat##1{% |
| 988 |
\let\caption@ORI@setcounter\setcounter |
| 989 |
\let\caption@ORI@addtocounter\addtocounter |
| 990 |
\def\setcounter####1####2{\csname c@####1\endcsname####2\relax}% |
| 991 |
\def\addtocounter####1####2{\advance\csname c@####1\endcsname ####2\relax}% |
| 992 |
\caption@ORI@ContinuedFloat##1% |
| 993 |
\global\let\caption@SCcontinued\caption@ORI@ContinuedFloat |
| 994 |
\let\setcounter\caption@ORI@setcounter |
| 995 |
\let\addtocounter\caption@ORI@addtocounter}% |
| 996 |
\let\caption@ORI@setup\captionsetup |
| 997 |
\def\captionsetup{% |
| 998 |
\caption@withoptargs\caption@SC@setup}% |
| 999 |
\def\caption@SC@setup##1##2{% |
| 1000 |
\caption@g@addto@list\caption@SCsetup{##2}% |
| 1001 |
\caption@ORI@setup##1{##2}}% |
| 1002 |
\let\caption@ORI\caption |
| 1003 |
\def\caption{% |
| 1004 |
\def\caption{\caption@Error{% |
| 1005 |
Only one \noexpand\caption can be placed in this environment}}% |
| 1006 |
\let\captionsetup\caption@setup |
| 1007 |
\let\caption@@refstepcounter\caption@l@stepcounter |
| 1008 |
\caption@ORI}% |
| 1009 |
\long\def\@caption##1[##2]##3{% |
| 1010 |
\@bsphack |
| 1011 |
\gdef\caption@SClentry{##2}% |
| 1012 |
\gdef\caption@SCtext{##3}% |
| 1013 |
\@esphack}% |
| 1014 |
#1{% is \@gobble in star form, and \@firstofone otherwise |
| 1015 |
\def\label##1{\@bsphack\gdef\caption@SClabel{##1}\@esphack}}% |
| 1016 |
}% |
| 1017 |
\newcommand*\caption@defrost{% |
| 1018 |
\ifx\caption@ORI@ContinuedFloat\@undefined |
| 1019 |
\caption@defrost@setup |
| 1020 |
\ifx\caption@SCtext\@undefined \else |
| 1021 |
\expandafter\expandafter\expandafter\caption |
| 1022 |
\expandafter\expandafter\expandafter[% |
| 1023 |
\expandafter\expandafter\expandafter{% |
| 1024 |
\expandafter\caption@SClentry\expandafter}\expandafter]% |
| 1025 |
\expandafter{\caption@SCtext}% |
| 1026 |
\fi |
| 1027 |
\ifx\caption@SClabel\@undefined \else |
| 1028 |
\expandafter\label\expandafter{\caption@SClabel}% |
| 1029 |
\fi |
| 1030 |
\else |
| 1031 |
\caption@Error{Internal Error:\MessageBreak |
| 1032 |
\noexpand\caption@defrost in same group as \string\caption@freeze}% |
| 1033 |
\fi}% |
| 1034 |
\newcommand*\caption@defrost@setup{% |
| 1035 |
\caption@SCcontinued |
| 1036 |
\ifx\caption@SCsetup\@undefined \else |
| 1037 |
\expandafter\captionsetup\expandafter{\caption@SCsetup}% |
| 1038 |
\fi}% |
| 1039 |
}{}% |
| 1040 |
\caption@undefbool{needfreeze}} |
| 1041 |
\caption@IfPackageLoaded{float}[2001/11/08 v1.3d]{% |
| 1042 |
\@ifpackageloaded{floatrow}{% |
| 1043 |
\caption@ifpackageloaded{floatrow}[2007/08/24 v0.2a]{}{}% |
| 1044 |
}{% |
| 1045 |
\let\caption@ORI@float@setevery\@float@setevery |
| 1046 |
\def\@float@setevery#1{% |
| 1047 |
\float@ifcaption{#1}{% |
| 1048 |
\caption@setposition{\@fs@iftopcapt t\else b\fi}% |
| 1049 |
\renewcommand\caption@setfloatcapt[1]{% |
| 1050 |
\let\@makecaption\caption@@make |
| 1051 |
\global\setbox\@floatcapt\vbox{% |
| 1052 |
\color@begingroup ##1\color@endgroup}}% |
| 1053 |
\float@getstyle\float@style{#1}% |
| 1054 |
\caption@setstyle*\float@style |
| 1055 |
\caption@setoptions\float@style |
| 1056 |
}{}% |
| 1057 |
\caption@freezeHref % will be defrosted in \float@makebox |
| 1058 |
\caption@ORI@float@setevery{#1}}% |
| 1059 |
\g@addto@macro\caption@typehook{% |
| 1060 |
\expandafter\ifx\csname #1name\endcsname\relax |
| 1061 |
\expandafter\let\csname #1name\expandafter\endcsname |
| 1062 |
\csname fname@#1\endcsname |
| 1063 |
\fi}% |
| 1064 |
\g@addto@macro\fs@plaintop{\def\@fs@mid{\vspace\abovecaptionskip\relax}}% |
| 1065 |
\g@addto@macro\fs@boxed{\def\@fs@mid{\kern\abovecaptionskip\relax}}% |
| 1066 |
\providecommand*\float@ifstyle[1]{% |
| 1067 |
\expandafter\ifx\csname fst@#1\endcsname\relax |
| 1068 |
\expandafter\@secondoftwo |
| 1069 |
\else |
| 1070 |
\expandafter\@firstoftwo |
| 1071 |
\fi}% |
| 1072 |
\providecommand*\float@getstyle[2]{% |
| 1073 |
\edef#1{% |
| 1074 |
\noexpand\expandafter\noexpand\@gobblefour\noexpand\string |
| 1075 |
\expandafter\expandafter\expandafter\noexpand |
| 1076 |
\csname fst@#2\endcsname}% |
| 1077 |
\edef#1{#1}% |
| 1078 |
\caption@Debug{floatstyle{#2} = `#1'}}% |
| 1079 |
\providecommand*\float@setstyle[2]{% |
| 1080 |
\expandafter\edef\csname fst@#1\endcsname{% |
| 1081 |
\expandafter\noexpand\csname fs@#2\endcsname}}% |
| 1082 |
\providecommand*\float@dostyle[1]{% |
| 1083 |
\@nameuse{fst@#1}\@float@setevery{#1}}% |
| 1084 |
\providecommand*\float@ifcaption[1]{% |
| 1085 |
\expandafter\ifx\csname @float@c@#1\endcsname\float@caption |
| 1086 |
\expandafter\@firstoftwo |
| 1087 |
\else |
| 1088 |
\expandafter\@secondoftwo |
| 1089 |
\fi}% |
| 1090 |
}}{% |
| 1091 |
\providecommand*\float@ifstyle[1]{\@secondoftwo}% |
| 1092 |
\providecommand*\float@ifcaption[1]{\@secondoftwo}% |
| 1093 |
} |
| 1094 |
\captionsetup[boxed]{skip=2pt} % do not issue a warning when not used |
| 1095 |
\caption@ifbool{ruled}{% |
| 1096 |
\captionsetup[ruled]{margin=0pt,minmargin=0,slc=0}% |
| 1097 |
}{% |
| 1098 |
\DeclareCaptionStyle{ruled}{labelfont=bf,labelsep=space,strut=0}% |
| 1099 |
} |
| 1100 |
\caption@undefbool{ruled} |
| 1101 |
\caption@IfPackageLoaded{floatflt}[1996/02/27 v1.3]{% |
| 1102 |
\let\caption@ORI@floatingfigure\floatingfigure |
| 1103 |
\def\floatingfigure{% |
| 1104 |
\caption@floatflt{figure}% |
| 1105 |
\caption@ORI@floatingfigure}% |
| 1106 |
\let\caption@ORI@floatingtable\floatingtable |
| 1107 |
\def\floatingtable{% |
| 1108 |
\caption@floatflt{table}% |
| 1109 |
\caption@ORI@floatingtable}% |
| 1110 |
\newcommand*\caption@floatflt[1]{% |
| 1111 |
\caption@settype{#1}% |
| 1112 |
\caption@clearmargin |
| 1113 |
\caption@setoptions{floating#1}% |
| 1114 |
\let\caption@boxrestore\@parboxrestore}% |
| 1115 |
}{} |
| 1116 |
\caption@IfPackageLoaded{fltpage}[1998/10/29 v.0.3]{% |
| 1117 |
\caption@setbool{needfreeze}{1}% |
| 1118 |
\renewcommand\FP@helpNote[2]{% |
| 1119 |
\begingroup % save \caption@thepage |
| 1120 |
\caption@pageref{#2}% |
| 1121 |
\typeout{FP#1 is inserted on page \caption@thepage!}% |
| 1122 |
\endgroup}% |
| 1123 |
\renewcommand*\FP@floatBegin[1]{% |
| 1124 |
\def\@captype{#1}% |
| 1125 |
\let\FP@LabelText\@empty |
| 1126 |
\begin{lrbox}{\FP@floatCorpusBOX}% |
| 1127 |
\caption@ifFPrefcap |
| 1128 |
{\caption@freeze\relax}% |
| 1129 |
{\def\label##1{\@bsphack\gdef\FP@LabelText{##1}\@esphack}% |
| 1130 |
\caption@freeze*}% |
| 1131 |
\ignorespaces}% |
| 1132 |
\renewcommand*\FP@floatEnd{% |
| 1133 |
\end{lrbox}% |
| 1134 |
\stepcounter{FP@\@captype C}% |
| 1135 |
\caption@label\FP@positionLabel |
| 1136 |
\FP@helpNote\@captype\FP@positionLabel |
| 1137 |
\edef\FP@RestoreCounter{% |
| 1138 |
\noexpand\setcounter{\@captype}{\the\value\@captype}% |
| 1139 |
\noexpand\setcounter{ContinuedFloat}{\the\value{ContinuedFloat}}}% |
| 1140 |
\FP@float |
| 1141 |
{\FP@positionLabel}% location label test |
| 1142 |
{\begin\@captype[p!]% |
| 1143 |
\usebox\FP@floatCorpusBOX |
| 1144 |
\caption@defrost@setup |
| 1145 |
\caption@ifFPlistcap |
| 1146 |
{\caption@refstepcounter\@captype |
| 1147 |
\expandafter\caption@makecurrent\expandafter\@captype |
| 1148 |
\expandafter{\caption@SClentry}}% |
| 1149 |
{\expandafter\captionlistentry\expandafter{\caption@SClentry}}% |
| 1150 |
\caption@makeanchor\relax |
| 1151 |
\ifx\FP@LabelText\@empty \else |
| 1152 |
\expandafter\label\expandafter{\FP@LabelText}% |
| 1153 |
\fi |
| 1154 |
\end\@captype}% |
| 1155 |
{\FP@RestoreCounter |
| 1156 |
\@ifundefined{theH\@captype}{}{% |
| 1157 |
\expandafter\l@addto@macro\csname theH\@captype\endcsname{.FP}}}% |
| 1158 |
{\begin\@captype[b!]% |
| 1159 |
\let\FP@savedSetfnumCommand\caption@setfnum |
| 1160 |
\def\caption@setfnum##1{% |
| 1161 |
\FP@savedSetfnumCommand{##1}% |
| 1162 |
\ifx\FP@guide\@empty \else |
| 1163 |
\expandafter\l@addto@macro\csname fnum@##1\endcsname{\ {\FP@guide}}% |
| 1164 |
\fi}% |
| 1165 |
\setlength\abovecaptionskip{2pt plus 2pt minus 1pt}% length above caption |
| 1166 |
\setlength\belowcaptionskip{2pt plus 2pt minus 1pt}% length below caption |
| 1167 |
\caption@setoptions{FP\@captype}% |
| 1168 |
\FP@separatorCaption |
| 1169 |
\caption@ifFPlistcap{}{\let\caption@addcontentsline\@gobbletwo}% |
| 1170 |
\caption@defrost |
| 1171 |
\end\@captype}% |
| 1172 |
}% |
| 1173 |
\caption@For{typelist}{% |
| 1174 |
\newcounter{FP@#1C}% |
| 1175 |
\newenvironment{FP#1}{\FP@floatBegin{#1}}{\FP@floatEnd}}% |
| 1176 |
}{% |
| 1177 |
\let\caption@ifFPlistcap\@undefined |
| 1178 |
\let\caption@ifFPrefcap\@undefined |
| 1179 |
} |
| 1180 |
\caption@IfPackageLoaded{hyperref}[2003/11/30 v6.74m]{% |
| 1181 |
\@ifundefined{hyper@makecurrent}{% hyperref has stopped early |
| 1182 |
\caption@WarningNoLine{% |
| 1183 |
Hyperref support is turned off\MessageBreak |
| 1184 |
because hyperref has stopped early}% |
| 1185 |
}{% |
| 1186 |
\g@addto@macro\caption@prepareslc{\measuring@true}% |
| 1187 |
\renewcommand*\caption@@refstepcounter{\H@refstepcounter}% |
| 1188 |
\renewcommand*\caption@makecurrent[2]{% |
| 1189 |
\caption@makecurrentHref{#1}% |
| 1190 |
\caption@Debug{hyperref current=\@currentHref}% |
| 1191 |
\caption@gettitle{#2}}% |
| 1192 |
\newcommand*\caption@makecurrentHref{\hyper@makecurrent}% |
| 1193 |
\renewcommand\caption@makeanchor[1]{% |
| 1194 |
\caption@Debug{hyperref anchor: \@currentHref}% |
| 1195 |
% If we cannot have nesting, the anchor is empty. |
| 1196 |
\ifHy@nesting |
| 1197 |
\expandafter\hyper@@anchor\expandafter{\@currentHref}{#1}% |
| 1198 |
\else |
| 1199 |
\Hy@raisedlink{% |
| 1200 |
\expandafter\hyper@@anchor\expandafter{\@currentHref}{\relax}% |
| 1201 |
}#1% |
| 1202 |
\fi}% |
| 1203 |
\g@addto@macro\caption@prepareslc{\let\caption@makeanchor\@firstofone}% |
| 1204 |
\newif\if@capstart |
| 1205 |
\def\caption@start{\caption@ifhypcap\caption@start@\relax}% |
| 1206 |
\def\caption@start@{% |
| 1207 |
\caption@makestart\@captype |
| 1208 |
\caption@startanchor\@currentHref |
| 1209 |
\global\@capstarttrue |
| 1210 |
\let\hc@currentHref\@currentHref |
| 1211 |
\def\caption@makecurrentHref##1{% |
| 1212 |
\global\@capstartfalse |
| 1213 |
\global\let\@currentHref\hc@currentHref}% |
| 1214 |
\let\caption@makeanchor\@firstofone |
| 1215 |
}% |
| 1216 |
\newcommand*\caption@makestart[1]{% |
| 1217 |
\begingroup |
| 1218 |
\Hy@hypertexnamesfalse |
| 1219 |
\hyper@makecurrent{#1.caption}% |
| 1220 |
\endgroup |
| 1221 |
\caption@Debug{hypcap start=\@currentHref}}% |
| 1222 |
\newcommand*\caption@startanchor[1]{% |
| 1223 |
\ifvmode\begingroup |
| 1224 |
\caption@Debug{hypcap anchor: #1 (vertical mode)}% |
| 1225 |
\@tempdima\prevdepth |
| 1226 |
\nointerlineskip |
| 1227 |
\vspace*{-\caption@hypcapspace}% |
| 1228 |
\caption@anchor{#1}% |
| 1229 |
\vspace*{\caption@hypcapspace}% |
| 1230 |
\prevdepth\@tempdima |
| 1231 |
\endgroup\else |
| 1232 |
\caption@Debug{hypcap anchor: #1 (horizontal mode)}% |
| 1233 |
\caption@anchor{#1}% |
| 1234 |
\fi}% |
| 1235 |
\newcommand*\caption@anchor[1]{% |
| 1236 |
\ifmeasuring@ \else |
| 1237 |
\caption@raisedlink{\hyper@anchorstart{#1}\hyper@anchorend}% |
| 1238 |
\fi}% |
| 1239 |
\ifx\HyperRaiseLinkLength\@tempdima |
| 1240 |
\def\caption@raisedlink#1{\ifvmode#1\else\Hy@raisedlink{#1}\fi}% |
| 1241 |
\else |
| 1242 |
\let\caption@raisedlink\Hy@raisedlink |
| 1243 |
\fi |
| 1244 |
\def\caption@@start{% |
| 1245 |
\@ifundefined{hc@currentHref}{% |
| 1246 |
\caption@Warning{% |
| 1247 |
The option `hypcap=true' will be ignored for this\MessageBreak |
| 1248 |
particular \string\caption}}{}}% |
| 1249 |
\def\caption@freezeHref{% |
| 1250 |
\let\caption@ORI@start\caption@start |
| 1251 |
\def\caption@start{\let\caption@start\caption@ORI@start}% |
| 1252 |
\global\let\caption@currentHref\@undefined |
| 1253 |
\def\caption@@start{\global\let\caption@currentHref\@currentHref}% |
| 1254 |
\let\caption@ORI@setfloatcapt\caption@setfloatcapt |
| 1255 |
\renewcommand*\caption@setfloatcapt{% |
| 1256 |
\ifx\caption@currentHref\@undefined \else |
| 1257 |
\let\caption@makeanchor\@firstofone |
| 1258 |
\fi |
| 1259 |
\caption@ORI@setfloatcapt}}% |
| 1260 |
\def\caption@defrostHref{% |
| 1261 |
\ifx\caption@currentHref\@undefined \else |
| 1262 |
\caption@startanchor\caption@currentHref |
| 1263 |
\global\let\caption@currentHref\@undefined |
| 1264 |
\fi}% |
| 1265 |
\@ifundefined{HyOrg@float@makebox}{}{% |
| 1266 |
\caption@Debug{% |
| 1267 |
Redefining \noexpand\float@makebox (again)\@gobble}% |
| 1268 |
\let\caption@ORI@float@makebox\float@makebox % save for compatibility mode |
| 1269 |
\renewcommand\float@makebox[1]{% |
| 1270 |
\HyOrg@float@makebox{#1\relax \caption@defrostHref}}% |
| 1271 |
}% |
| 1272 |
}}{} |
| 1273 |
\caption@IfPackageLoaded{hypcap}{% v1.0 |
| 1274 |
\ifx\caption@start\relax \else % hyperref hasn't stopped early |
| 1275 |
\let\caption@ORI@capstart\capstart % save for compatibility mode |
| 1276 |
\@ifundefined{capstarttrue}% check for v1.10 of hypcap package |
| 1277 |
{\def\capstart{\caption@start@}}% |
| 1278 |
{\def\capstart{\ifcapstart\caption@start@\fi}}% |
| 1279 |
\let\caption@start\relax |
| 1280 |
\let\caption@@start\relax |
| 1281 |
\caption@set@bool\caption@ifhypcap 1% |
| 1282 |
\renewcommand*\caption@hypcapspace{\hypcapspace}% |
| 1283 |
\fi}{} |
| 1284 |
\caption@IfPackageLoaded{listings}[2004/02/13 v1.2]{% |
| 1285 |
\let\caption@ORI@lst@MakeCaption\lst@MakeCaption |
| 1286 |
\def\lst@MakeCaption#1{% #1 is `t' or `b' |
| 1287 |
\begingroup |
| 1288 |
\caption@setposition{#1}% |
| 1289 |
\caption@iftop{% |
| 1290 |
\@tempdima\belowcaptionskip |
| 1291 |
\belowcaptionskip\abovecaptionskip |
| 1292 |
\abovecaptionskip\@tempdima}{}% |
| 1293 |
\caption@setup{rule=0}% |
| 1294 |
\caption@setoptions{lstlisting}% |
| 1295 |
\caption@setautoposition{#1}% |
| 1296 |
\caption@begin{lstlisting}% |
| 1297 |
\caption@ORI@lst@MakeCaption{#1}% |
| 1298 |
\caption@end |
| 1299 |
\endgroup}% |
| 1300 |
\def\lst@makecaption{\caption@starfalse\@makecaption}% |
| 1301 |
\def\lst@maketitle{\caption@startrue\@makecaption\@empty}% |
| 1302 |
\providecommand*\ext@lstlisting{lol}% |
| 1303 |
}{} |
| 1304 |
\providecommand*\LTcaptype{table} |
| 1305 |
\caption@IfPackageLoaded{longtable}[1995/05/24 v3.14]{% |
| 1306 |
\RequirePackage{ltcaption}[=2007/09/01]% |
| 1307 |
\let\LT@@makecaption\@undefined |
| 1308 |
\caption@AtBeginDocument{% |
| 1309 |
\let\caption@ORI@LT@array\LT@array |
| 1310 |
\renewcommand*\LT@array{% |
| 1311 |
\global\let\caption@opt@@longtable\@undefined |
| 1312 |
\def\captionsetup{% |
| 1313 |
\noalign\bgroup |
| 1314 |
\@ifstar\@captionsetup\@captionsetup}% gobble * |
| 1315 |
\def\@captionsetup##1{\LT@captionsetup{##1}\egroup}% |
| 1316 |
\def\LT@captionsetup##1{% |
| 1317 |
\captionsetup@startrue\caption@setup@options[@longtable]{##1}% |
| 1318 |
\global\let\caption@opt@@longtable\caption@opt@@longtable}% |
| 1319 |
\def\@captionabovetrue{\LT@captionsetup{position=t}}% |
| 1320 |
\def\@captionabovefalse{\LT@captionsetup{position=b}}% |
| 1321 |
\def\captionlistentry{% |
| 1322 |
\noalign\bgroup |
| 1323 |
\@ifstar{\egroup\LT@captionlistentry}% gobble * |
| 1324 |
{\egroup\LT@captionlistentry}}% |
| 1325 |
\def\LT@captionlistentry##1{% |
| 1326 |
\caption@listentry\@firstoftwo[\LTcaptype]{##1}}% |
| 1327 |
%% \let\Hy@LT@currentHlabel\@currentHlabel |
| 1328 |
%% \let\@currentHlabel\Hy@LT@currentHlabel |
| 1329 |
\def\ContinuedFloat{\noalign{% |
| 1330 |
\caption@Error{\noexpand\ContinuedFloat outside float}}}% |
| 1331 |
\caption@ORI@LT@array}}% |
| 1332 |
\long\def\LT@c@ption#1[#2]#3{% |
| 1333 |
\LT@makecaption#1{\csname fnum@\LTcaptype\endcsname}{#3}% |
| 1334 |
\LT@captionlistentry{#2}}% |
| 1335 |
\renewcommand\LT@makecaption[3]{% |
| 1336 |
\caption@LT@make{% |
| 1337 |
\caption@settype*\LTcaptype |
| 1338 |
\ifdim\LTcapwidth=4in \else |
| 1339 |
\setcaptionwidth\LTcapwidth |
| 1340 |
\fi |
| 1341 |
\caption@setoptions{longtable}% |
| 1342 |
\caption@setoptions{@longtable}% |
| 1343 |
\caption@setautoposition{\ifcase\LT@rows t\else b\fi}% |
| 1344 |
\caption@startrue#1\caption@starfalse |
| 1345 |
\caption@resetContinuedFloat\LTcaptype |
| 1346 |
\caption@begin\LTcaptype |
| 1347 |
\caption@normalsize |
| 1348 |
\vskip-\ht\strutbox |
| 1349 |
\caption@iftop{\vskip\belowcaptionskip}{\vskip\abovecaptionskip}% |
| 1350 |
\caption@@make{#2}{#3}\endgraf |
| 1351 |
\caption@iftop{\vskip\abovecaptionskip}{\vskip\belowcaptionskip}% |
| 1352 |
\caption@end}}% |
| 1353 |
}{} |
| 1354 |
\caption@IfPackageLoaded{picinpar}{% |
| 1355 |
\long\def\figwindow[#1,#2,#3,#4] {% |
| 1356 |
\caption@window{figure}% |
| 1357 |
\caption@setoptions{figwindow}% |
| 1358 |
\begin{window}[#1,#2,{#3},\caption@wincaption{#4}] }% |
| 1359 |
\long\def\tabwindow[#1,#2,#3,#4] {% |
| 1360 |
\caption@window{table}% |
| 1361 |
\caption@setoptions{tabwindow}% |
| 1362 |
\begin{window}[#1,#2,{#3},\caption@wincaption{#4}] }% |
| 1363 |
\newcommand*\caption@window[1]{% |
| 1364 |
\let\caption@boxrestore\@parboxrestore |
| 1365 |
\let\@makecaption\caption@@make |
| 1366 |
\caption@setautoposition b% |
| 1367 |
\caption@settype{#1}% |
| 1368 |
\caption@clearmargin}% |
| 1369 |
\newcommand\caption@wincaption[1]{% |
| 1370 |
\ifdim\picwd=\z@ |
| 1371 |
\let\caption@makecurrent\@gobbletwo |
| 1372 |
\let\caption@@start\relax |
| 1373 |
\caption@prepareslc |
| 1374 |
\fi |
| 1375 |
\edef\@tempa{\expandafter\noexpand\@car#1\@nil}% |
| 1376 |
\if\@tempa*% |
| 1377 |
\let\@tempa\@firstofone |
| 1378 |
\else\if\@tempa[%] |
| 1379 |
\let\@tempa\@firstofone |
| 1380 |
\else |
| 1381 |
\let\@tempa\@empty |
| 1382 |
\fi\fi |
| 1383 |
\expandafter\caption\@tempa{#1}}% |
| 1384 |
}{} |
| 1385 |
\newcommand*\piccaptiontype[1]{\def\@piccaptype{#1}} |
| 1386 |
\caption@IfPackageLoaded{picins}{% |
| 1387 |
\@ifundefined{@piccaptype}{% |
| 1388 |
\caption@iftype{% |
| 1389 |
\let\@piccaptype\@captype |
| 1390 |
}{% |
| 1391 |
\def\@piccaptype{figure}% |
| 1392 |
}% |
| 1393 |
}{}% |
| 1394 |
\let\@captype\@undefined |
| 1395 |
\def\piccaption{\caption@star\relax{\caption@dblarg\@piccaption}}% |
| 1396 |
\let\caption@ORI@make@piccaption\make@piccaption |
| 1397 |
\def\make@piccaption{% |
| 1398 |
\let\caption@ORI\caption |
| 1399 |
\long\def\caption[##1]##2{% |
| 1400 |
\caption@freezeHref % will be defrosted in \ivparpic |
| 1401 |
\caption@settype\@piccaptype |
| 1402 |
\caption@clearmargin |
| 1403 |
\caption@setoptions{parpic}% |
| 1404 |
\let\caption@boxrestore\@parboxrestore |
| 1405 |
\caption@setautoposition b% |
| 1406 |
\expandafter\expandafter\expandafter\caption@ORI |
| 1407 |
\expandafter\expandafter\expandafter[% |
| 1408 |
\expandafter\expandafter\expandafter{% |
| 1409 |
\expandafter##1\expandafter}\expandafter]\expandafter{##2}}% |
| 1410 |
\caption@ORI@make@piccaption |
| 1411 |
\let\caption\caption@ORI}% |
| 1412 |
|
| 1413 |
\let\caption@ORI@ivparpic\ivparpic |
| 1414 |
\def\ivparpic(#1,#2)(#3,#4)[#5][#6]#7{% |
| 1415 |
\let\caption@ORI@noindent\noindent |
| 1416 |
\def\noindent{% |
| 1417 |
\caption@defrostHref |
| 1418 |
\let\noindent\caption@ORI@noindent |
| 1419 |
\noindent}% |
| 1420 |
\caption@ORI@ivparpic(#1,#2)(#3,#4)[#5][#6]{#7}% |
| 1421 |
\let\noindent\caption@ORI@noindent}% |
| 1422 |
}{% |
| 1423 |
\let\piccaptiontype\@undefined |
| 1424 |
} |
| 1425 |
\caption@IfPackageLoaded{rotating}[1995/08/22 v2.10]{% |
| 1426 |
\def\rotcaption{\let\@makecaption\@makerotcaption\caption}% |
| 1427 |
\def\rotcaptionof{% |
| 1428 |
\caption@teststar\caption@of{\rotcaption*}\rotcaption}% |
| 1429 |
\long\def\@makerotcaption#1#2{% |
| 1430 |
\ifdim\captionwidth=\z@ |
| 1431 |
\setcaptionwidth{.8\textheight}% |
| 1432 |
\caption@slc{#1}{#2}{.8\vsize}{% |
| 1433 |
\let\caption@makerot\caption@@make |
| 1434 |
\caption@clearmargin |
| 1435 |
\let\caption@parbox\@secondoftwo}% |
| 1436 |
\caption@set@bool\caption@ifslc0% been there, done that |
| 1437 |
\fi |
| 1438 |
\rotatebox{90}{\caption@makerot{#1}{#2}}% |
| 1439 |
\nobreak\hspace{12pt}}% |
| 1440 |
\newcommand\caption@makerot[2]{% |
| 1441 |
\begin{minipage}\captionwidth\caption@@make{#1}{#2}\end{minipage}}% |
| 1442 |
\caption@For{typelist}{% |
| 1443 |
\newenvironment{sideways#1}{\@rotfloat{#1}}{\end@rotfloat}% |
| 1444 |
\newenvironment{sideways#1*}{\@rotdblfloat{#1}}{\end@rotdblfloat}}% |
| 1445 |
}{} |
| 1446 |
\caption@IfPackageLoaded{sidecap}[1999/05/11 v1.4d]{% |
| 1447 |
\caption@setbool{needfreeze}{1}% |
| 1448 |
\caption@AtBeginDocument{\let\SC@caption=\caption}% |
| 1449 |
\let\caption@ORI@SC@zfloat\SC@zfloat |
| 1450 |
\def\SC@zfloat#1#2#3[#4]{% |
| 1451 |
\let\caption@ORI\caption |
| 1452 |
\caption@ORI@SC@zfloat{#1}{#2}{#3}[#4]% |
| 1453 |
\let\caption\caption@ORI |
| 1454 |
\caption@settype*{#2}% |
| 1455 |
\caption@freeze*% |
| 1456 |
\ignorespaces}% |
| 1457 |
\let\caption@ORI@endSC@FLOAT\endSC@FLOAT |
| 1458 |
\def\endSC@FLOAT{% |
| 1459 |
\let\caption@ORI@settype\caption@settype |
| 1460 |
\def\caption@settype##1{% will be done in \@xfloat |
| 1461 |
\caption@ORI@settype*{##1}% do not change \@currentlabel |
| 1462 |
\caption@setSC@justify |
| 1463 |
%%% \caption@setoptions{SCfloat}% |
| 1464 |
\caption@setoptions{SC\@captype}% |
| 1465 |
\caption@start}% |
| 1466 |
\def\caption@setSC@justify{% |
| 1467 |
\caption@clearmargin |
| 1468 |
\@ifundefined{SC@justify}{}{% |
| 1469 |
\ifx\SC@justify\@empty \else |
| 1470 |
\let\caption@hj\SC@justify |
| 1471 |
\let\SC@justify\@empty |
| 1472 |
\fi}}% |
| 1473 |
\let\caption\SC@orig@caption |
| 1474 |
\def\SC@orig@caption[##1]##2{\caption@defrost}% |
| 1475 |
\caption@setSC@justify % for compatibility mode |
| 1476 |
\caption@ORI@endSC@FLOAT}% |
| 1477 |
\newcommand*\caption@For@SC[2]{% |
| 1478 |
\def#1{b}% = \sidecaptionvpos{#2}{b} (v1.6) |
| 1479 |
\newenvironment{SC#2}% |
| 1480 |
{\SC@float[#1]{#2}}{\endSC@float}% |
| 1481 |
\newenvironment{SC#2*}% |
| 1482 |
{\SC@dblfloat[#1]{#2}}{\endSC@dblfloat}}% |
| 1483 |
\@onlypreamble\caption@For@SC |
| 1484 |
\caption@For{typelist}{% |
| 1485 |
\expandafter\caption@For@SC\csname SC@#1@vpos\endcsname{#1}}% |
| 1486 |
}{} |
| 1487 |
\caption@IfPackageLoaded{subfigure}[2002/01/23 v2.1]{% |
| 1488 |
\def\sf@ifpositiontop{% |
| 1489 |
\ifx\@captype\@undefined |
| 1490 |
\expandafter\@gobbletwo |
| 1491 |
\else\ifx\@captype\relax |
| 1492 |
\expandafter\expandafter\expandafter\@gobbletwo |
| 1493 |
\else |
| 1494 |
\expandafter\expandafter\expandafter\sf@if@position@top |
| 1495 |
\fi\fi} |
| 1496 |
\def\sf@if@position@top{% |
| 1497 |
\@ifundefined{if\@captype topcap}% |
| 1498 |
{\@gobbletwo}% |
| 1499 |
{\@nameuse{if\@captype topcap}% |
| 1500 |
\expandafter\@firstoftwo |
| 1501 |
\else |
| 1502 |
\expandafter\@secondoftwo |
| 1503 |
\fi}} |
| 1504 |
}{} |
| 1505 |
\caption@IfPackageLoaded{supertabular}[2002/07/19 v4.1e]{% |
| 1506 |
\renewcommand*\tablecaption{% |
| 1507 |
\caption@star |
| 1508 |
{\refstepcounter{table}}% |
| 1509 |
{\caption@dblarg{\@xtablecaption}}}% |
| 1510 |
\let\caption@ORI@xtablecaption\@xtablecaption |
| 1511 |
\long\def\@xtablecaption[#1]#2{% |
| 1512 |
\caption@gettitle{#2}% |
| 1513 |
\caption@ORI@xtablecaption[#1]{#2}}% |
| 1514 |
\long\def\ST@caption#1[#2]#3{\par% |
| 1515 |
\caption@settype*{#1}% |
| 1516 |
\caption@setoptions{supertabular}% |
| 1517 |
\def\caption@fixposition{% |
| 1518 |
\caption@setposition{\if@topcaption t\else b\fi}}% |
| 1519 |
\caption@beginex{#1}{#2}{#3}% |
| 1520 |
\caption@boxrestore |
| 1521 |
\caption@normalsize |
| 1522 |
\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par |
| 1523 |
\caption@end}% |
| 1524 |
}{} |
| 1525 |
\caption@IfPackageLoaded{xtab}[2000/04/09 v2.3]{% |
| 1526 |
\renewcommand*\tablecaption{% |
| 1527 |
\caption@star |
| 1528 |
{\refstepcounter{table}}% |
| 1529 |
{\caption@dblarg{\@xtablecaption}}}% |
| 1530 |
\let\caption@ORI@xtablecaption\@xtablecaption |
| 1531 |
\long\def\@xtablecaption[#1]#2{% |
| 1532 |
\caption@gettitle{#2}% |
| 1533 |
\caption@ORI@xtablecaption[#1]{#2}}% |
| 1534 |
\long\def\ST@caption#1[#2]#3{\par% |
| 1535 |
\caption@settype*{#1}% |
| 1536 |
\caption@setoptions{xtabular}% |
| 1537 |
\def\caption@fixposition{% |
| 1538 |
\caption@setposition{\if@topcaption t\else b\fi}}% |
| 1539 |
\@initisotab |
| 1540 |
\caption@beginex{#1}{#2}{#3}% |
| 1541 |
\caption@boxrestore |
| 1542 |
\caption@normalsize |
| 1543 |
\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par |
| 1544 |
\caption@end |
| 1545 |
\global\advance\ST@pageleft -\PWSTcapht |
| 1546 |
\ST@trace\tw@{Added caption. Space left for xtabular: \the\ST@pageleft}}% |
| 1547 |
}{} |
| 1548 |
\caption@IfPackageLoaded{threeparttable}[2003/06/13 v3.0]{% |
| 1549 |
\let\caption@ORI@threeparttable\threeparttable |
| 1550 |
\renewcommand*\threeparttable{% |
| 1551 |
\caption@settype{table}% |
| 1552 |
\caption@setposition a% ? |
| 1553 |
\caption@clearmargin |
| 1554 |
\caption@setoptions{threeparttable}% |
| 1555 |
\caption@ORI@threeparttable}% |
| 1556 |
\let\caption@ORI@measuredfigure\measuredfigure |
| 1557 |
\renewcommand*\measuredfigure{% |
| 1558 |
\caption@settype{figure}% |
| 1559 |
\caption@setposition a% ? |
| 1560 |
\caption@clearmargin |
| 1561 |
\caption@setoptions{measuredfigure}% |
| 1562 |
\caption@ORI@measuredfigure}% |
| 1563 |
\def\TPT@caption#1[#2]#3{% |
| 1564 |
\gdef\TPT@docapt{% |
| 1565 |
\global\let\TPT@docapt\@undefined |
| 1566 |
\caption@setautoposition\caption@TPT@position |
| 1567 |
\TPT@LA@caption{#1}[{#2}]{#3}}% |
| 1568 |
\ifx\TPT@hsize\@empty |
| 1569 |
\let\label\TPT@gatherlabel % Bug: does not work for measuredfigures |
| 1570 |
\gdef\caption@TPT@position{t}% |
| 1571 |
\g@addto@macro\TPT@docapt\caption@TPT@eatvskip |
| 1572 |
\else |
| 1573 |
\def\caption@TPT@position{b}% |
| 1574 |
\TPT@docapt |
| 1575 |
\fi |
| 1576 |
\ignorespaces}% |
| 1577 |
%\newcommand*\caption@TPT@eatvskip{\vskip-.2\baselineskip}% |
| 1578 |
\def\caption@TPT@eatvskip#1\vskip{#1\@tempdima=}% |
| 1579 |
}{} |
| 1580 |
\caption@IfPackageLoaded{wrapfig}{% ver 3.3 (Oct 12, 1999) |
| 1581 |
\providecommand*\float@ifstyle[1]{% |
| 1582 |
\expandafter\ifx\csname fst@#1\endcsname\relax |
| 1583 |
\expandafter\@secondoftwo |
| 1584 |
\else |
| 1585 |
\expandafter\@firstoftwo |
| 1586 |
\fi}% |
| 1587 |
\newcommand*\caption@restylewrapfloat[1]{% |
| 1588 |
\expandafter\ifx\csname caption@OUR@wrap#1\expandafter\endcsname |
| 1589 |
\csname wrap#1\endcsname |
| 1590 |
\caption@Error{% |
| 1591 |
For a successful cooperation of the `wrapfig' package\MessageBreak |
| 1592 |
with the `float' package you should load the `wrapfig'\MessageBreak |
| 1593 |
package *after* the `float' package}% |
| 1594 |
\else |
| 1595 |
\expandafter\let\csname caption@ORI@wrap#1\expandafter\endcsname |
| 1596 |
\csname wrap#1\endcsname |
| 1597 |
\@namedef{wrap#1}{\caption@wrapfloat{#1}}% |
| 1598 |
\expandafter\let\csname caption@OUR@wrap#1\expandafter\endcsname |
| 1599 |
\csname wrap#1\endcsname |
| 1600 |
\fi}% |
| 1601 |
\newcommand*\caption@wrapfloat[1]{% |
| 1602 |
\caption@settype*{#1}% |
| 1603 |
\float@ifstyle{#1}{% |
| 1604 |
\ifx\WF@floatstyhook\@undefined |
| 1605 |
\caption@Error{% |
| 1606 |
For a successful cooperation of the `wrapfig' package\MessageBreak |
| 1607 |
with the `float' package you should use at least\MessageBreak |
| 1608 |
`wrapfig' version 3.6}% |
| 1609 |
\else |
| 1610 |
\float@dostyle{#1}% |
| 1611 |
\fi}{}% |
| 1612 |
\caption@clearmargin |
| 1613 |
%%% \caption@setoptions{wrapfloat}% |
| 1614 |
\caption@setoptions{wrap#1}% |
| 1615 |
\@nameuse{caption@ORI@wrap#1}}% |
| 1616 |
\caption@restylewrapfloat{figure}% |
| 1617 |
\caption@restylewrapfloat{table}% |
| 1618 |
\caption@For{typelist}{% |
| 1619 |
\newenvironment{wrap#1}{\wrapfloat{#1}}{\endwrapfloat}% |
| 1620 |
\caption@restylewrapfloat{#1}}% |
| 1621 |
\ifx\WF@floatstyhook\@undefined \else % wrapfig v3.6 |
| 1622 |
\@ifundefined{float@restyle}{}{% |
| 1623 |
\toks@=\expandafter{\float@restyle{#1}% (env may or may not be defined) |
| 1624 |
\caption@restylewrapfloat{#1}}% |
| 1625 |
\edef\@tempa{\def\noexpand\float@restyle##1{\the\toks@}}% |
| 1626 |
\@tempa}% perform redefinitions |
| 1627 |
\let\caption@ORI@wrapfloat\wrapfloat |
| 1628 |
\def\wrapfloat#1{% |
| 1629 |
\float@ifstyle{#1}{% |
| 1630 |
\caption@Error{% |
| 1631 |
For a successful cooperation of the `wrapfig' package\MessageBreak |
| 1632 |
with the `float' package you should load the `wrapfig'\MessageBreak |
| 1633 |
package *right after* the `float' package}}{}% |
| 1634 |
\caption@ORI@wrapfloat{#1}}% |
| 1635 |
\fi % wrapfig v3.6 |
| 1636 |
\def\WF@rapt[#1]#2{% final two args: #1 = overhang, #2 = width, |
| 1637 |
\gdef\WF@ovh{#1}% hold overhang for later, when \width is known |
| 1638 |
\global\setbox\WF@box\vtop\bgroup \setlength\hsize{#2}% |
| 1639 |
\caption@start |
| 1640 |
\ifdim\hsize>\z@ \@parboxrestore \else |
| 1641 |
\setbox\z@\hbox\bgroup \let\wf@@caption\caption \let\caption\wf@caption |
| 1642 |
\ignorespaces \fi}% |
| 1643 |
}{} |
| 1644 |
\endinput |
| 1645 |
%% |
| 1646 |
%% End of file `caption_2010-01-09.sty'. |