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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

832 \else<br />

833 \thm@topsep\theorempreskipamount<br />

834 \thm@topsepadd\theorempostskipamount<br />

835 \fi<br />

836 \else% oldframeskips<br />

837 \thm@topsep\theorempreskipamount<br />

838 \thm@topsepadd \theorempostskipamount<br />

839 \ifvmode\advance\thm@topsepadd\partopsep\fi<br />

840 \fi<br />

841 \@topsep\thm@topsep<br />

842 \@topsepadd\thm@topsepadd<br />

843 \advance\linewidth -\theorem@indent<br />

844 \advance\linewidth -\theorem@rightindent<br />

845 \advance\@totalleftmargin \theorem@indent<br />

846 \parshape \@ne \@totalleftmargin \linewidth<br />

847 \@ifnextchar[{\@ythm{#1}{#2}{#3}}{\@xthm{#1}{#2}{#3}}}<br />

Changed to three instead of two parameters (the first one is new):<br />

〈env〉:=#1: (added) internal name of the theorem environment,<br />

〈use ctr〉:=#2: internal name of the theorem which counter is used,<br />

〈output name〉:=#3: keyword to be displayed in the output; all arguments<br />

are transmitted from \@othm/\@xnthm/\@ynthm.<br />

Lines 817–819: if thmmarksis active, the counter for the current environment<br />

〈env’〉 is incremented, since the last endmark in environment 〈env’〉 is<br />

definitely not the position for its endmark (necessary for nested environments<br />

ending at the same time).<br />

Line 820: set \InTheoType to 〈env〉.<br />

Lines 821–824: ifthmmarksisactive, incrementcurr〈env〉ctrandsetend〈env〉ctr<br />

to 0.<br />

Line 825: adapted from latex.ltx: increment the corresponding counter.<br />

Line 826: perform prework (before theorem structure is generated).<br />

Line 827: call L ATEX’s original \trivlist. It does just organizational things,<br />

no actual skips! The skip is added later when the first \item is typeset.<br />

Lines 828–840: handle\theorempreskipamount,\theorempostskipamount,<br />

\theoreminframepreskipamount,and\theoreminframepostskipamount<br />

(old skip schema: if in vmode, there is additional space, cf. \trivlist<br />

and \@trivlist in latex.ltx).<br />

Lines 841–842: initialize \@topsep (the space before the first item) and<br />

\@topsepadd (the space after the first item). (see explanation of spacing<br />

in the note preceding this macro.)<br />

Lines 843–845: handle \theoremindent.<br />

Line 846: if there is an optional argument, call<br />

\@ythm{〈env〉}{〈use ctr〉}{〈output name〉}, otherwise call<br />

\@xthm{〈env〉}{〈use ctr〉}{〈output name〉}.<br />

66

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

Saved successfully!

Ooh no, something went wrong!