ntheorem.pdf. - Mirrors.med.harvard.edu
ntheorem.pdf. - Mirrors.med.harvard.edu
ntheorem.pdf. - Mirrors.med.harvard.edu
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
\@renewtheorem<br />
Line 757, 758: reset \@theoremprework/postwork.<br />
Line 759: According to the next character, call \@othm{〈env〉} (if another<br />
counter is used) or \@nthm{〈env〉}.<br />
Thus,whencalling\@newthmwith#1=〈env〉,forcurrentvalues\theoremstyle=plain,<br />
\theorembodyfont=\upshape,\theoremheaderfont=\bf,\theoremseparator=:,<br />
\theoremindent=1cm,\theoremnumbering=arabic,and\theoremsymbol=\Box,<br />
the macro \setparms@〈env〉 is defined as<br />
\setparms@〈env〉 == \def\theorem@headerfont{\bf\theorem@checkbold}<br />
\def\theorem@separator{:}<br />
\def\theorem@indent{1cm}<br />
\upshape<br />
\th@plain<br />
and the macro \th@class@〈env〉 is defined as<br />
\th@class@〈env〉 == \def\theoremstyle{plain}<br />
\def\theoremheaderfont{\bf}<br />
\def\theorembodyfont{\upshape}<br />
\def\theoremseparator{:}<br />
\def\theoremindent{1cm}<br />
\def\theoremnumbering{arabic}<br />
\def\theoremsymbol{\Box}<br />
Note, that line 759 must not be inside any \if...\fi construct.<br />
763 \gdef\@renewtheorem#1{%<br />
764 \expandafter\@ifundefined{#1}%<br />
765 {\PackageError{\basename}{Theorem keyword #1 undefined}\@ehc}%<br />
766 {}%<br />
767 \expandafter\let\csname #1\endcsname\relax<br />
768 \expandafter\let\csname #1*\endcsname\relax<br />
769 \@newtheorem{#1}}<br />
Argument: 〈env〉:=#1 is the (internal) environment name to be redefined,<br />
which is read from the L ATEX source.<br />
If 〈env〉 is already defined, make it (and 〈env〉*, too) undefined and call<br />
\@newtheorem{〈env〉}.<br />
\@nthm \@nthm is called by \@newtheorem if the environment to be defined has a<br />
counter of its own.<br />
770 \gdef\@nthm#1#2{%<br />
771 \expandafter\protected@xdef\csname num@addtheoremline#1\endcsname{%<br />
772 \noexpand\@num@addtheoremline{#1}{#2}}%<br />
773 \expandafter\protected@xdef\csname nonum@addtheoremline#1\endcsname{%<br />
774 \noexpand\@nonum@addtheoremline{#1}{#2}}%<br />
775 \theoremkeyword{#2}%<br />
61