ntheorem.pdf. - Mirrors.med.harvard.edu
ntheorem.pdf. - Mirrors.med.harvard.edu
ntheorem.pdf. - Mirrors.med.harvard.edu
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
ams-thref<br />
additional optional argument. Thus, the argument values are not processed,<br />
but are output as normal text. Normally, this did not matter since output<br />
hasalready beenfinishedbya\clearpagein\end{document}. For somany<br />
labels, a page gets filled and the output routine is called.<br />
239 \newcommand\org@testdef{}<br />
240 \let\org@testdef\@testdef<br />
241 \def\@testdef#1#2#3{%<br />
242 \org@testdef{#1}{#2}{#3}%<br />
243 \@ifnextchar[{\thm@gobbleopt}{}%<br />
244 }<br />
245 \newcommand\thm@gobbleopt{}<br />
246 \long\def\thm@gobbleopt[#1]{}<br />
Line 242: process the optional argument.<br />
247 }% end of option thref ************************************************<br />
7.1.5 Option amsmath to Thmmarks<br />
Most of the commands are extensions of commands in amsmath.sty.<br />
248 \DeclareOption{amsmath}{% ***************************************************<br />
249 \if@thref<br />
250 \PackageInfo{\basename}{option ‘amsmath’ handling for ‘thref’ loaded}%<br />
if thref is active, the handling of labels in amsmath equations has also to<br />
be adapted.<br />
251 \let\ltx@label\label<br />
keep the handling of \label ... (the one defined above in the thref option).<br />
amsmath implements a special handling of \label inside of displaymath<br />
environments. It is extended to process the optional argument provided be<br />
the thref option:<br />
252 \global\let\thm@df@label@optarg\@empty<br />
253 \def\label@in@display#1{%<br />
254 \ifx\df@label\@empty\else<br />
255 \@amsmath@err{Multiple \string\label’s:<br />
256 label ’\df@label’ will be lost}\@eha<br />
257 \fi<br />
258 \gdef\df@label{#1}%<br />
259 \@ifnextchar[{\thm@label@in@display@optarg}{\thm@label@in@display@noarg}%]<br />
260 }<br />
261 \def\thm@label@in@display@noarg{%<br />
262 \global\let\thm@df@label@optarg\@empty<br />
263 }<br />
264 \def\thm@label@in@display@optarg[#1]{%<br />
265 \gdef\thm@df@label@optarg{#1}%<br />
266 }<br />
44