\newteorem{nazwa �rodowiska}{tekst nag��wka}\newteorem{nazwa �rodowiska drugiego}%
[nazwa �rodowiska]{tekst nag��wka drugiego}\newteorem{nazwa �rodowiska drugiego}%
{tekst nag��wka drugiego}[section]Dost�pne s� polecenia zmieniaj�ce:
\theoremstyle{style}\theoremheaderfont{font}
\theorembodyfont{font}
\theorempreskimamount
\theorempostskimamount
Przyk�ad
Poni�sze polecenia definiuj�ce nowe �rodowiska i ich cechy musz� znale��
si� w preambule dokumentu (mi�dzy poleceniem \documentclass...,
a \begin{document}).
Licznikiem �rodowiska Def jest licznik �rodowiska The, a licznik �rodowiska Lem jest zale�ny od licznika �rodowiska The.
\theoremstyle{plain} \newtheorem{Cor}{Corollary}
\theoremheaderfont{\normalfont\bfseries}
\theorembodyfont{\normalfont\slshape}
\theoremstyle{break} \newtheorem{Exa}{Example}
\theoremstyle{changebreak} \newtheorem{The}{Theorem}
\theoremstyle{marginbreak} \newtheorem{Lem}{Lemma}[The]
\theoremstyle{change} \newtheorem{Def}[The]{Definition}
\theoremstyle{margin} \newtheorem{Rem}{Remark}
\theoremstyle{nonumber} \newtheorem{uwaga}{Uwaga !}
\begin{Cor}
This is a sentence typeset in the theorem environment Cor.
\end{Cor}
\begin{Exa}
This is a sentence typeset in the theorem environment Exa.
\end{Exa}
\begin{The}
This is a sentence typeset in the theorem environment The.
\end{The}
\begin{Lem}
This is a sentence typeset in the theorem environment Lem.
\end{Lem}
\begin{Def}[extra text]
This is a sentence typeset in the theorem environment Def.
\end{Def}
\begin{Rem}
This is a sentence typeset in the theorem environment Rem.
\end{Rem}
\begin{uwaga}
This is a sentence typeset in the theorem environment uwaga.
\end{uwaga}
Utworzenie nowego sposobu prezentacji �rodowiska nie zosta�o rozwi�zane w spos�b elegancki; wymaga dopisania nast�puj�cej makroinstrukcji (przyk�ad dla �rodowiska uwaga), gdzie nonumber jest nazw� nowego �rodowiska (uwaga na znak @)
\gdef\th@nonumber{\normalfont\slshape
\def\@begintheorem##1##2{\item[%
\rlap{\vbox{\hbox{\hskip \labelsep\theorem@headerfont ##1}%
\vskip 1ex%
\hbox{\strut}}}]}%
\def\@opargbegintheorem##1##2##3{%
\item[\rlap{\vbox{\hbox{\hskip \labelsep \theorem@headerfont
##1\ ##2\ (##3)}%
\hbox{\strut}}}]}}