aboutsummaryrefslogtreecommitdiff
path: root/latex/common.tex
diff options
context:
space:
mode:
Diffstat (limited to 'latex/common.tex')
-rw-r--r--latex/common.tex52
1 files changed, 50 insertions, 2 deletions
diff --git a/latex/common.tex b/latex/common.tex
index d71a2492..5d959155 100644
--- a/latex/common.tex
+++ b/latex/common.tex
@@ -20,9 +20,57 @@
\newcommand{\iflehrer}[2]{\iftoggle{lehrerversion}{#1}{#2}}
-\newcommand{\solution}[1]{\iftoggle{lehrerversion}{#1}{\phantom{#1}}}
+\newcommand{\solution}[1]{\iftoggle{lehrerversion}{#1}{\textcolor{white}{#1}}}
-\newcommand{\gap}[1]{\underline{\solution{#1}}}
+\newcommand{\gap}[1]{\underLine{\solution{#1}}}
+
+\newtheoremstyle{Aufg}% name of the style to be used
+{2pt}% measure of space to leave above the theorem. E.g.: 3pt
+{}% measure of space to leave below the theorem. E.g.: 3pt
+{}% name of font to use in the body of the theorem
+{}% measure of space to indent
+{}% name of head font
+{}% punctuation between head and body
+{\newline }% space after theorem head; " " = normal interword space
+{\textbf{\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}\ifdefined\Verteilung{}: \ \Verteilung \hfill {/}\AnzahlPunkte \ BE\fi}}
+
+\theoremstyle{Aufg}
+\newtheorem{Aufg}{Aufgabe}
+
+\newtheoremstyle{Lsg}% name of the style to be used
+{2pt}% measure of space to leave above the theorem. E.g.: 3pt
+{}% measure of space to leave below the theorem. E.g.: 3pt
+{}% name of font to use in the body of the theorem
+{}% measure of space to indent
+{}% name of head font
+{}% punctuation between head and body
+{\newline }% space after theorem head; " " = normal interword space
+{\textbf{\thmname{#1}\thmnote{ (#3)}:}}
+
+\theoremstyle{Lsg}
+\newtheorem{Lsg}{Lösung}
+
+\newtheoremstyle{Bearbeitung}% name of the style to be used
+{0pt}% measure of space to leave above the theorem. E.g.: 3pt
+{25pt}% measure of space to leave below the theorem. E.g.: 3pt
+{}% name of font to use in the body of the theorem
+{}% measure of space to indent
+{}% name of head font
+{}% punctuation between head and body
+{ }% space after theorem head; " " = normal interword space
+{\thmname{#1}}
+
+\theoremstyle{Bearbeitung}
+\newtheorem{Bearbeitung}{}
+
+\newcommand{\Lehrerversion}{\excludecomment{Bearbeitung}}
+\newcommand{\Schuelerversion}{\excludecomment{Lsg}}
+
+\iftoggle{lehrerversion}{
+ \Lehrerversion
+}{
+ \Schuelerversion
+}
% Add new paired delimiter 'abs' using mathtools
\DeclarePairedDelimiter\abs{\lvert}{\rvert}%