diff options
Diffstat (limited to 'latex/headers/preamble.tex')
-rw-r--r-- | latex/headers/preamble.tex | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/latex/headers/preamble.tex b/latex/headers/preamble.tex index 78903ef..9620808 100644 --- a/latex/headers/preamble.tex +++ b/latex/headers/preamble.tex @@ -201,7 +201,14 @@ \newcommand\hdsolution[1]{L\"osung versteckt} }{% \declaretheorem[numbered=no, style=thmsolution, name=L\"osung]{replacementSolution} - \newenvironment{solution}[1][]{\vspace{-1em}\begin{replacementSolution}[#1]}{\end{replacementSolution}} + + \NewEnviron{solution}[1][]{ + \vspace{-1em} + \begin{replacementSolution}[#1] + \ + \BODY + \end{replacementSolution} + } \newcommand\hdsolution[1]{#1} } \makeatother |