This commit is contained in:
Never Gude 2026-05-22 22:13:27 +02:00
parent a795279eb4
commit 615d146c20
2 changed files with 60 additions and 47 deletions

View file

@ -77,48 +77,53 @@
\end{minipage}
}
\newlength{\theoremskip}
\setlength{\theoremskip}{6em}
\newcommand{\theoremfont}{\normalfont\bfseries}
\newcommand{\definitionfont}{\normalfont\bfseries}
\newenvironment{theoremic}[2][\theoremfont]{
{#1 #2}
\hfill
\begin{minipage}[t]{\the\dimexpr\linewidth-\theoremskip\relax}
}{
\end{minipage}
}
\newenvironment{theorem}{
\begin{theoremic}{Satz.}
}{
\end{theoremic}
}
\newenvironment{lemma}{
\begin{theoremic}{Lemma.}
}{
\end{theoremic}
}
\newenvironment{proof}{
\begin{theoremic}{Beweis.}
}{
\end{theoremic}
}
\newenvironment{definition}{
\begin{theoremic}[\definitionfont]{Definition.}
}{
\end{theoremic}
}
\newenvironment{example}{
\begin{theoremic}[\definitionfont]{Beispiel.}
}{
\end{theoremic}
}
% \newlength{\theoremskip}
% \setlength{\theoremskip}{6em}
%
% \newcommand{\theoremfont}{\normalfont\bfseries}
% \newcommand{\definitionfont}{\normalfont\bfseries}
%
% \newenvironment{theoremic}[3][]{
% {#3 #2 #1}
% \hfill
% \begin{minipage}[t]{\the\dimexpr\linewidth-\theoremskip\relax}
% }{
% \end{minipage}
% }
%
% \newenvironment{theorem}[1][]{
% \begin{theoremic}[#1]{Satz}{\theoremfont}
% }{
% \end{theoremic}
% }
%
% \newenvironment{lemma}[1][]{
% \begin{theoremic}[#1]{Lemma}{\theoremfont}
% }{
% \end{theoremic}
% }
%
% \newenvironment{corrolary}[1][]{
% \begin{theoremic}[#1]{Korall}{\theoremfont}
% }{
% \end{theoremic}
% }
%
% \newenvironment{proof}[1][]{
% \begin{theoremic}[#1]{Beweis}{\theoremfont}
% }{
% \end{theoremic}
% }
%
% \newenvironment{definition}[1][]{
% \begin{theoremic}[#1]{Definition}{\theoremfont}
% }{
% \end{theoremic}
% }
%
% \newenvironment{example}[1][]{
% \begin{theoremic}[#1]{Beispiel}{\theoremfont}
% }{
% \end{theoremic}
% }
%