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.
\theoremlistall This one implements the type all.<br />
932 \def\theoremlistall{%<br />
933 \let\thm@@thmlstart=\relax<br />
934 \let\thm@@thmlend=\relax<br />
935 \let\thm@@thmline=\thm@@thmline@noname}<br />
\theoremlistallname And here’s the type allname.<br />
936 \def\theoremlistallname{%<br />
937 \let\thm@@thmlstart=\relax<br />
938 \let\thm@@thmlend=\relax<br />
939 \let\thm@@thmline=\thm@@thmline@name}<br />
\theoremlistoptional This one is the list-type opt. In case of [hyperref], the fifth argument,<br />
which is provided by hyperref.sty is automatically given to<br />
\thm@@thmline@noname.<br />
940 \def\theoremlistoptional{%<br />
941 \let\thm@@thmlstart=\relax<br />
942 \let\thm@@thmlend=\relax<br />
943 \def\thm@@thmline##1##2##3##4{%<br />
944 \ifx\empty ##3%<br />
945 \else<br />
946 \thm@@thmline@noname{##1}{##2}{##3}{##4}%<br />
947 \fi}}<br />
\theoremlistoptname And the last type, optname. In case of [hyperref], the fifth argument,<br />
which is provided by hyperref.sty is automatically given to<br />
\thm@@thmline@name.<br />
948 \def\theoremlistoptname{%<br />
949 \let\thm@@thmlstart=\relax<br />
950 \let\thm@@thmlend=\relax<br />
951 \def\thm@@thmline##1##2##3##4{%<br />
952 \ifx\empty ##3%<br />
953 \else%<br />
954 \thm@@thmline@name{##1}{##2}{##3}{##4}%<br />
955 \fi}}<br />
\theoremlisttype The next one is the user-interface for selecting the list-type. It simply calls<br />
\thm@thml@〈type〉, if the given 〈type〉 is defined.<br />
956 \def\theoremlisttype#1{%<br />
957 \@ifundefined{thm@thml@#1}%<br />
958 {\PackageError{\basename}{Listtype #1 not defined}\@eha}%<br />
959 {\csname thm@thml@#1\endcsname}}<br />
Now, hereisthecode, whichmapsthetypes–selectedby\theoremlisttype<br />
– to the defined macros.<br />
960 \def\thm@thml@all{\theoremlistall}<br />
961 \def\thm@thml@opt{\theoremlistoptional}<br />
962 \def\thm@thml@optname{\theoremlistoptname}<br />
963 \def\thm@thml@allname{\theoremlistallname}<br />
71