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.
which is read from the L ATEX source.<br />
Line 698: check if 〈env〉 is not yet defined (or is redefined).<br />
Lines 700–725 are executed exactly if 〈env〉 and 〈env〉* are not yet defined.<br />
Line 700: \thm@tempif=true iff 〈env〉 and 〈env〉* are not yet defined.<br />
Line 701: Initialize theorem list handling for 〈env〉.<br />
Lines 702–707: if thmmarks is active and the counters are not yet defined, for<br />
every theorem-like, define<br />
curr〈env〉ctr: in the ith environment of type 〈env〉, curr〈env〉ctr = i,<br />
and<br />
end〈env〉ctr: whentheinnermostenvironmentisoftype〈env〉, inthejth<br />
potential position for an end mark in this environment, end〈env〉ctr = j.<br />
(if the counters are already defined, 〈env〉 is redefined, and these internal<br />
counters have to be continued).<br />
Lines 708–756: define several commands: (\xdef expands the definition at<br />
the time it is called and makes it global):<br />
Line 708: store the current value of \theoremsymbol as \〈env〉Symbol.<br />
Line 709, 710: storethecurrentvalueof\theorempostworkas\〈env〉postwork.<br />
Lines 711–713, 714–716: Define the commands \env and \env* to set the<br />
headerof〈env〉bycalling\mkheader@〈env〉. (usingaswitch\thm@starredenv:<br />
\relax iff starred).<br />
Lines 717, 718: Set \end〈env〉* to \end〈env〉.<br />
Lines 719–737: define \setparms@〈env〉 to set the style parameters of the<br />
header for every 〈env〉 environment (in the sequel, current means, at the<br />
moment \@newtheorem is called):<br />
Lines 720, 721: setting\theorem@headerfonttothecurrent valueof\theoremheaderfont,<br />
followed by a check if it is a bold style,<br />
Lines 722, 723: setting\theorem@separatortothecurrent valueof\theoremseparator,<br />
Lines 724, 725: setting\theorem@preworktothecurrent valueof\theoremprework,<br />
Lines 726–733: if new skip schema is used: setting the skips to the current<br />
values hold in the respective tokens,<br />
Line 734, 735: setting\theorem@indenttothecurrent valueof\theoremindent,<br />
Line 736: executingthecommandsequencecurrentlystoredin\theorembodyfont,<br />
and<br />
Line 737: callingth@\the\theorem@@style(whichinitializes\@begi<strong>ntheorem</strong><br />
and\@opargbegi<strong>ntheorem</strong>accordingtothecurrent valueof\theoremstyle<br />
by calling th@\the\theorem@@style).<br />
Line 738–755: define \th@class@〈env〉 to initialize all style parameters as<br />
they are set for the 〈env〉 environment. (call skip-initializing commands<br />
only if new skip scheme is activated).<br />
Note, that the \@ifdefinable from lines 698/699 end in line 754.<br />
60