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.
\newfra<strong>med</strong>theorem<br />
893 \theoremprework{%<br />
894 \csname#1@@prework\endcsname<br />
895 \def\FrameCommand{\csname#1@framecommand\endcsname}%<br />
896 \thm@fra<strong>med</strong>prework}%<br />
897 \expandafter\xdef\csname#1@@postwork\endcsname{%<br />
898 \the\theorempostwork}%<br />
899 \theorempostwork{%<br />
900 \thm@fra<strong>med</strong>postwork<br />
901 \csname#1@@postwork\endcsname}%<br />
902 \newtheorem@i{#1}%<br />
903 }<br />
904 \def\newfra<strong>med</strong>theorem#1{%<br />
905 \expandafter\xdef\csname#1@@prework\endcsname{%<br />
906 \the\theoremprework}%<br />
907 \theoremprework{\csname#1@@prework\endcsname\thm@fra<strong>med</strong>prework}%<br />
908 \expandafter\xdef\csname#1@@postwork\endcsname{%<br />
909 \the\theorempostwork}%<br />
910 \theorempostwork{\thm@fra<strong>med</strong>postwork\csname#1@@postwork\endcsname}%<br />
911 \newtheorem@i{#1}%<br />
912 }<br />
913 }% end of option fra<strong>med</strong> **********************************************<br />
7.1.9 Generation of Theorem Lists<br />
The generation of lists of theorems, definitions, etc. is based on the .thm<br />
file.<br />
The following macros are are needed for the generation of theorem-lists. We<br />
will document it for the theorem \begin{definition}[optional], which<br />
we assume to be the first definition at all and which is placed on page 5.<br />
\thm@thmcaption This macro, used internally, strips of the outer brackets from the second<br />
argument and calls \thm@@thmcaption. It’s typically called like this<br />
\thm@thmcaption{definition}{{Definition}{1}{optional}}<br />
(internal name of the environment, output keyword, running number, optional<br />
text)<br />
914 \def\thm@thmcaption#1#2{\thm@@thmcaption{#1}#2}<br />
\thm@@thmcaption \thm@caption is called from \thm@caption; it writes an appropriate entry<br />
to the .thm-file.<br />
915 \def\thm@@thmcaption#1#2#3#4{%<br />
916 \thm@parseforwriting{#2}%<br />
917 \let\thm@tmpii\thm@tmp<br />
918 \thm@parseforwriting{#4}%<br />
919 \edef\thm@t{{\thm@tmpii}{#3}{\thm@tmp}}%<br />
920 \addcontentsline{thm}{#1}{\thm@t}}<br />
69