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.
\renewtheorem<br />
677 \@ifstar<br />
678 {\expandafter\@ifundefined{th@nonumber\the\theorem@style}%<br />
679 {\PackageError{\basename}{Theorem style {nonumber\the\theorem@style}<br />
680 undefined (you need it here for newtheorem*) }\@ehc}%<br />
681 {}%<br />
682 \edef\@tempa{{nonumber\the\theorem@style}}%<br />
683 \expandafter\theorem@@style\@tempa\@newtheorem}%<br />
684 {\edef\@tempa{{\the\theorem@style}}%<br />
685 \expandafter\theorem@@style\@tempa\@newtheorem}}<br />
Defines \theorem@@style to be the current \theoremstyle or – in case<br />
of \newtheorem* – to be its non-numbered equivalent (which has to be<br />
defined!), and then calls \@newtheorem.<br />
686 \gdef\renewtheorem{%<br />
687 \@ifstar<br />
688 {\expandafter\@ifundefined{th@nonumber\the\theorem@style}%<br />
689 {\PackageError{\basename}{Theorem style {nonumber\the\theorem@style}<br />
690 undefined (you need it here for newtheorem*) }\@ehc}%<br />
691 {}%<br />
692 \edef\@tempa{{nonumber\the\theorem@style}}%<br />
693 \expandafter\theorem@@style\@tempa\@renewtheorem}%<br />
694 {\edef\@tempa{{\the\theorem@style}}%<br />
695 \expandafter\theorem@@style\@tempa\@renewtheorem}}<br />
Analogous to \newtheorem.<br />
\@newtheorem \@newtheoremdoes the main job for initializing a new theorem environment<br />
type. It is called by \newtheorem.<br />
696 \gdef\@newtheorem#1{%<br />
697 \thm@tempiffalse<br />
698 \expandafter\@ifdefinable\csname #1\endcsname<br />
699 {\expandafter\@ifdefinable\csname #1*\endcsname<br />
700 {\thm@tempiftrue<br />
701 \thm@definelthm{#1}% for lists<br />
702 \if@thmmarks<br />
703 \expandafter\@ifundefined{c@curr#1ctr}%<br />
704 {\newcounter{curr#1ctr}}{}%<br />
705 \expandafter\@ifundefined{c@end#1ctr}%<br />
706 {\newcounter{end#1ctr}}{}%<br />
707 \fi<br />
708 \expandafter\protected@xdef\csname #1Symbol\endcsname{\the\theoremsymbol}%<br />
709 \expandafter\protected@xdef\csname #1@postwork\endcsname{%<br />
710 \the\theorempostwork}%<br />
711 \expandafter\gdef\csname#1\endcsname{%<br />
712 \let\thm@starredenv\@undefined<br />
713 \csname mkheader@#1\endcsname}%<br />
714 \expandafter\gdef\csname#1*\endcsname{%<br />
58