summaryrefslogtreecommitdiff
path: root/macros/latex209/contrib/misc/rmthm.sty
blob: e1770391eff5966e84640db53d778e29b158b524 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
% rmthm.sty, by nico@cs.ruu.nl
% This version is of 14 June 1991.
% You can change the style in which your \newtheorems are typeset with
% \renewcommand{\theoremstyle}{...}.
% Default is \rm (hence the name of this file).
% You can also specify an end-of-theorem marker with
% \renewcommand{\theoremclosing}{...}.
% Default is a box flushed right.
% If you don't want your theorems to be numbered, number them like
% the nonumtheorem theorem environment, i.e.
% \newtheorem{thm}[nonumthm]{Thm}.

\def\@begintheorem#1#2{\theoremstyle 
                       \trivlist \item[\hskip \labelsep{\bf #1\ #2}]}
\def\@opargbegintheorem#1#2#3{\theoremstyle 
                       \trivlist \item[\hskip \labelsep{\bf #1\ #2\ (#3)}]}
\def\@endtheorem{\nopagebreak\theoremclosing\endtrivlist}
\def\theoremstyle{\rm}
\def\theoremclosing{\hfill$\Box$}
\newtheorem{nonumthm}{\relax}
\renewcommand{\thenonumthm}{\relax}