%% theorem style for W de G Proceedings %% usage: \usepackage{thmproc} %% File: thmproc.sty \def\FMithmInfo{1995/11/23 v2.2c Theorem extension package (FMi)} \@ifundefined{theorem@style}{}{\endinput} \NeedsTeXFormat{LaTeX2e}[1995/06/01] \ProvidesPackage{thmproc} [\FMithmInfo] \gdef\theoremstyle#1{% \@ifundefined{th@#1}{\@warning {Unknown theoremstyle `#1'. Using `plain'}% \theorem@style{plain}}% {\theorem@style{#1}}% \begingroup \csname th@\the\theorem@style \endcsname \endgroup} \global\let\@begintheorem\relax \global\let\@opargbegintheorem\relax \newtoks\theorem@style \global\theorem@style{plain} \gdef\theorembodyfont#1{% \def\@tempa{#1}% \ifx\@tempa\@empty \theorem@bodyfont{}% \else \theorem@bodyfont{\reset@font#1}% \fi } \newtoks\theorem@bodyfont \global\theorem@bodyfont{} \gdef\theoremheaderfont#1{\gdef\theorem@headerfont{#1}% \gdef\theoremheaderfont##1{% \typeout{\string\theoremheaderfont\space should be used only once.}}} \ifx\upshape\undefined \gdef\theorem@headerfont{\bfseries} \else \gdef\theorem@headerfont{\normalfont\bfseries}\fi \gdef\th@plain{\@input@{thp.sty}} \gdef\th@break{\@input@{thb.sty}} \gdef\th@marginbreak{\@input@{thmb.sty}} \gdef\th@changebreak{\@input@{thcb.sty}} \gdef\th@change{\@input@{thc.sty}} \gdef\th@changep{\@input@{thcp.sty}}% only new line, compared with theorem.sty \gdef\th@changepd{\@input@{thcpd.sty}}% only new line, compared with theorem.sty \gdef\th@margin{\@input@{thm.sty}} \gdef\@xnthm#1#2[#3]{\expandafter\@ifdefinable\csname #1\endcsname {% \@definecounter{#1}\@newctr{#1}[#3]% \expandafter\xdef\csname the#1\endcsname {\expandafter \noexpand \csname the#3\endcsname \@thmcountersep \@thmcounter{#1}}% \def\@tempa{\global\@namedef{#1}}% \expandafter \@tempa \expandafter{% \csname th@\the \theorem@style \expandafter \endcsname \the \theorem@bodyfont \@thm{#1}{#2}}% \global \expandafter \let \csname end#1\endcsname \@endtheorem }} \gdef\@ynthm#1#2{\expandafter\@ifdefinable\csname #1\endcsname {\@definecounter{#1}% \expandafter\xdef\csname the#1\endcsname{\@thmcounter{#1}}% \def\@tempa{\global\@namedef{#1}}\expandafter \@tempa \expandafter{\csname th@\the \theorem@style \expandafter \endcsname \the\theorem@bodyfont \@thm{#1}{#2}}% \global \expandafter \let \csname end#1\endcsname \@endtheorem}} \gdef\@othm#1[#2]#3{% \expandafter\ifx\csname c@#2\endcsname\relax \@nocounterr{#2}% \else \expandafter\@ifdefinable\csname #1\endcsname {\expandafter \xdef \csname the#1\endcsname {\expandafter \noexpand \csname the#2\endcsname}% \def\@tempa{\global\@namedef{#1}}\expandafter \@tempa \expandafter{\csname th@\the \theorem@style \expandafter \endcsname \the\theorem@bodyfont \@thm{#2}{#3}}% \global \expandafter \let \csname end#1\endcsname \@endtheorem}% \fi} \gdef\@thm#1#2{\refstepcounter{#1}% \trivlist \@topsep \theorempreskipamount % used by first \item \@topsepadd \theorempostskipamount % used by \@endparenv \@ifnextchar [% {\@ythm{#1}{#2}}% {\@begintheorem{#2}{\csname the#1\endcsname}\ignorespaces}} \global\let\@xthm\relax \newskip\theorempreskipamount \newskip\theorempostskipamount \global\setlength\theorempreskipamount{12pt plus 5pt minus 3pt} \global\setlength\theorempostskipamount{8pt plus 3pt minus 1.5pt} \global\let\@endtheorem=\endtrivlist \@onlypreamble\@xnthm \@onlypreamble\@ynthm \@onlypreamble\@othm \@onlypreamble\newtheorem \@onlypreamble\theoremstyle \@onlypreamble\theorembodyfont \@onlypreamble\theoremheaderfont \theoremstyle{plain} %%%%%%%%% \begingroup \makeatletter \@ifundefined{theorem@style}{\input{theorem.sty}}{} \ProvidesFile{thp.sty} [\FMithmInfo] \gdef\th@plain{\normalfont\itshape \def\@begintheorem##1##2{% \item[\hskip\labelsep \theorem@headerfont ##1\ ##2.]}% \def\@opargbegintheorem##1##2##3{% \item[\hskip\labelsep \theorem@headerfont ##1\ ##2\ \rm(##3).]}} \endgroup \endinput