22.07.2013 Views

ntheorem.pdf. - Mirrors.med.harvard.edu

ntheorem.pdf. - Mirrors.med.harvard.edu

ntheorem.pdf. - Mirrors.med.harvard.edu

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

\thm@@thmline@noname<br />

\thm@@thmline@name<br />

Arguments: 〈env〉:=#1istheinternalenvironmentname, 〈output name〉:=#2<br />

is its keyword to be used in the output, #3 is the running number, and #4<br />

is the optional text argument in the header.<br />

Lines 915, 916: the command sequence for the output keyword is prepared<br />

by \thm@parseforwriting(which returns \thm@tmpii) and then stored<br />

in \thm@tmpii.<br />

Line 917: the optional text is also prepared by \thm@parseforwriting<br />

Lines 918, 919: The output is collected and written into the .aux file, which<br />

will forward it to the theorem-file.<br />

The following two macros are just shortcuts, often needed for the output of<br />

one single line in the theorem-lists. The first one is used in unna<strong>med</strong> lists,<br />

the second one in na<strong>med</strong>. Warning: Don’t remove the leading \let, since<br />

you will get wrong \if-\fi-nesting without it, if you don’t use hyperref.<br />

921 \def\thm@@thmline@noname#1#2#3#4{%<br />

922 \@dottedtocline{-2}{0em}{2.3em}%<br />

923 {\protect\numberline{#2}#3}%<br />

924 {#4}}<br />

925 \def\thm@@thmline@name#1#2#3#4{%<br />

926 \@dottedtocline{-2}{0em}{2.3em}%<br />

927 {#1 \protect\numberline{#2}#3}%<br />

928 {#4}}<br />

\thm@thmline This is another short one, which only discards the outer brackets from the<br />

first argument and calls \thm@@thmline. It’s normally called like this:<br />

\thm@@thmline{{Definition}{1}{optional}}{5}<br />

929 \def\thm@thmline#1#2{\thm@@thmline#1{#2}}<br />

\thm@lgobble Thefollowing macros are used to ignore entries for theorem sets, that should<br />

not occur in a given list:<br />

930 \long\def\thm@lgobble@entry#1#2{\ignorespaces}<br />

931 \long\def\thm@lgobble@freetext#1#2{\ignorespaces}<br />

The following four macros set up the predefined list-types. To do so, they<br />

define the internal macros \thm@@thmlstart (containing the code to be<br />

executed at the beginning of the list), \thm@@thmlend (code to be executed<br />

at the end of the list) and \thm@@thmline (code to be executed for every<br />

line). In order to gain compatibility with newthm.sty, we decided not to<br />

make this commands inaccessible to the user. But we recommend not using<br />

these commands, because they may disappear in later distributions.<br />

70

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!