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

@ -9,7 +9,7 @@
\ProcessOptions\relax \ProcessOptions\relax
% More declarations % % More declarations %
\LoadClass[sfdefaults=false, parskip=half]{scrartcl} \LoadClass[sfdefaults=false, parskip=half]{scrreprt}
%\KOMAoptions{mpinclude=true} %\KOMAoptions{mpinclude=true}
%\recalctypearea %\recalctypearea
@ -29,7 +29,7 @@
% Use sansfont for all title elements % Use sansfont for all title elements
\addtokomafont{titlehead}{\sffamily} \addtokomafont{titlehead}{\sffamily}
\addtokomafont{subject}{\normalfont \sffamily \itshape} \addtokomafont{subject}{\sffamily}
\addtokomafont{title}{\sffamily} \addtokomafont{title}{\sffamily}
\addtokomafont{subtitle}{\sffamily} \addtokomafont{subtitle}{\sffamily}
\addtokomafont{author}{\sffamily} \addtokomafont{author}{\sffamily}
@ -52,3 +52,11 @@
listname={Algorithmenverzeichnis} listname={Algorithmenverzeichnis}
] ]
{loa} {loa}
\newtheorem{theorem}{Satz}[chapter]
\newtheorem{lemma}[theorem]{Lemming}
\newtheorem{corollary}[theorem]{Korall}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{property}[theorem]{Eigenschaft}
\newtheorem{example}[theorem]{Beispiel}
\newtheorem{proof}{Beweis}

View file

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