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.
1008 }%<br />
1009 \endgroup}<br />
thm@enablelistoftheorems Up to now, we’ve set upvarious macros for writing and readingthe theoremfile.<br />
Thus, it’s time to set up the file itself. This is done by the next macro.<br />
We simply took the lines for \@starttoc from the L ATEX-base and changed<br />
some things. The main intention to copy \@starttoc is that we don’t want<br />
the file to be input when it is set up – like it’s done by \@starttoc.<br />
1010 \def\thm@enablelistoftheorems{%<br />
1011 \begingroup<br />
1012 \makeatletter<br />
1013 \if@filesw<br />
1014 \expandafter\newwrite\csname tf@thm\endcsname%<br />
1015 \im<strong>med</strong>iate\openout \csname tf@thm\endcsname \jobname.thm\relax%<br />
1016 \fi<br />
1017 \@nobreakfalse<br />
1018 \endgroup}<br />
\addtheoremline By \addtheoremline{〈theorem-set〉}{〈entry〉}, the user can insert an extra<br />
entry into the theorem-file. \addtheoremline* calls the internal<br />
macro \nonum@addtheoremline,otherwise \num@addtheoremlineis called.<br />
\num/nonum@addtheoremline{〈theorem-set〉}{〈entry〉}calls\num/nonum@addtheoremline〈theor<br />
which are definedwhen〈theorem-set〉 is declared (cf.\@nthm). Thesein turn<br />
call \@num/nonum@addtheoremline{〈theorem-set〉 }{〈keyword〉}{〈entry〉}<br />
which write information to the theorem file.<br />
1019 \def\addtheoremline{\@ifstar{\nonum@addtheoremline}{\num@addtheoremline}}<br />
1020 \def\nonum@addtheoremline#1{\csname nonum@addtheoremline#1\endcsname}%<br />
1021 \def\num@addtheoremline#1{\csname num@addtheoremline#1\endcsname}%<br />
\@nonum@addtheoremline \@num@addtheoremlineand\@nonum@addtheoremlinewrite the actual entries<br />
to the .thm file.<br />
Syntax: \@num/nonum@addtheoremline{〈theorem-set〉}{〈keyword〉}{〈entry〉}<br />
\@num@addtheoremline<br />
1022 \def\@nonum@addtheoremline#1#2#3{%<br />
1023 \thm@parseforwriting{#3}%<br />
1024 \edef\thm@t{{#2}{}{\thm@tmp}}%<br />
1025 \addcontentsline{thm}{#1}{\thm@t}}<br />
1026 \def\@num@addtheoremline#1#2#3{%<br />
1027 \thm@parseforwriting{#3}%<br />
1028 \edef\thm@t{{#2}{\csname the#1\endcsname}{\thm@tmp}}%<br />
1029 \addcontentsline{thm}{#1}{\thm@t}}%<br />
\addtotheoremfile To write any additional stuff into the theorem-file, the next macro is used.<br />
It first checks, if the optional name of a theorem-set is given. In that case,<br />
the macro \@@addtotheoremfile, otherwise \@addtotheoremfile is used<br />
to write the stuff into the file.<br />
74