diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-06-12 12:12:21 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-06-12 12:12:21 +0200 |
| commit | 23e85aaa1d8db47762fa088c9e3771d0af25ae47 (patch) | |
| tree | 3034f1f14c5cddee70804bd3c6f1759d59e36917 /latex/common.tex | |
| parent | cc058d812a27adf2efed8673df2c44608891200a (diff) | |
| download | unterricht-23e85aaa1d8db47762fa088c9e3771d0af25ae47.tar.gz unterricht-23e85aaa1d8db47762fa088c9e3771d0af25ae47.zip | |
move exercise related code into common
Diffstat (limited to 'latex/common.tex')
| -rw-r--r-- | latex/common.tex | 52 |
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}% |
