Typesetting captions with the caption package - Departamento de ...
Typesetting captions with the caption package - Departamento de ...
Typesetting captions with the caption package - Departamento de ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
65 \newcommand\<strong>caption</strong>@typ@{<strong>caption</strong>@typ@} % This saves 74 words of TeX memory<br />
66 \<strong>de</strong>f\<strong>caption</strong>@setuptype[#1]#2{%<br />
67 \@ifun<strong>de</strong>fined{\<strong>caption</strong>@typ@#1}%<br />
68 {\@name<strong>de</strong>f{\<strong>caption</strong>@typ@#1}{#2}}%<br />
69 {\expandafter\l@addto@macro\csname\<strong>caption</strong>@typ@#1\endcsname{,#2}}}<br />
70 \newcommand\<strong>caption</strong>@setup{\<strong>caption</strong>@setkeys{<strong>caption</strong>}}<br />
\<strong>caption</strong>@setkeys This one simply calls \setkeys{〈<strong>package</strong>〉}{〈args〉} but lets <strong>the</strong> error messages refer<br />
to <strong>the</strong> 〈<strong>package</strong>〉 <strong>package</strong> instead of <strong>the</strong> keyval <strong>package</strong>.<br />
71 \newcommand*\<strong>caption</strong>@setkeys{%<br />
72 \@dblarg\<strong>caption</strong>@@setkeys}<br />
73 \long\<strong>de</strong>f\<strong>caption</strong>@@setkeys[#1]#2#3{%<br />
74 \ifnum\<strong>caption</strong>@key<strong>de</strong>pth=0\relax<br />
75 \let\<strong>caption</strong>@KV@errx\KV@errx<br />
76 \let\<strong>caption</strong>@KV@err\KV@err<br />
77 \let\KV@errx\<strong>caption</strong>@Error<br />
78 \let\KV@err\<strong>caption</strong>@Error<br />
79 \fi<br />
80 \<strong>caption</strong>@stepcounter\<strong>caption</strong>@key<strong>de</strong>pth<br />
81 %<br />
82 \<strong>de</strong>f\<strong>caption</strong>@Package{#1}%<br />
83 \<strong>caption</strong>@Debug{\protect\setkeys{#2}{#3}}%<br />
84 \setkeys{#2}{#3}%<br />
85 \<strong>de</strong>f\<strong>caption</strong>@Package{<strong>caption</strong>}%<br />
86 %<br />
87 \<strong>caption</strong>@addtocounter\<strong>caption</strong>@key<strong>de</strong>pth\m@ne<br />
88 \ifnum\<strong>caption</strong>@key<strong>de</strong>pth=0\relax<br />
89 \let\KV@errx\<strong>caption</strong>@KV@errx<br />
90 \let\KV@err\<strong>caption</strong>@KV@err<br />
91 \fi}<br />
92 \<strong>caption</strong>@newcounter\<strong>caption</strong>@key<strong>de</strong>pth<br />
\<strong>caption</strong>@settype \<strong>caption</strong>@settype{〈type〉}<br />
Caption options which have been saved <strong>with</strong> \<strong><strong>caption</strong>s</strong>etup[〈type〉] can be executed<br />
using this command. (It simply executes <strong>the</strong> saved option list, if <strong>the</strong>re is any.)<br />
93 \newcommand*\<strong>caption</strong>@settype[1]{%<br />
94 \@ifun<strong>de</strong>fined{\<strong>caption</strong>@typ@#1}{}{%<br />
95 \<strong>caption</strong>@esetup{\csname\<strong>caption</strong>@typ@#1\endcsname}}}<br />
\<strong>caption</strong>@esetup \<strong>caption</strong>@esetup{〈keyval-list of options〉}<br />
To execute a keyval-list of options saved <strong>with</strong>in a macro we need this special version of<br />
\<strong>caption</strong>@setup which expands <strong>the</strong> argument first.<br />
96 \newcommand*\<strong>caption</strong>@esetup[1]{%<br />
97 \e<strong>de</strong>f\<strong>caption</strong>@tempa{\noexpand\<strong>caption</strong>@setup{#1}}%<br />
98 \<strong>caption</strong>@tempa}<br />
\clear<strong><strong>caption</strong>s</strong>etup \clear<strong><strong>caption</strong>s</strong>etup{〈type〉}<br />
This removes <strong>the</strong> saved option list associated <strong>with</strong> 〈type〉.<br />
99 \newcommand*\clear<strong><strong>caption</strong>s</strong>etup[1]{\@nameun<strong>de</strong>f{\<strong>caption</strong>@typ@#1}}<br />
30