about summary refs log tree commit diff stats
path: root/latex/headers
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-08-21 01:22:57 +0200
committerSoispha <soispha@vhack.eu>2023-08-21 01:22:57 +0200
commit45de8092565c7dad945f80169aaa8883c9c2237f (patch)
tree8a321fbfaf3d49c140781a3ba9a4843a1e7d2dd2 /latex/headers
parentFix(rust/flake.nix): Add better interface to switch to nightly (diff)
downloadflake-templates-45de8092565c7dad945f80169aaa8883c9c2237f.tar.gz
flake-templates-45de8092565c7dad945f80169aaa8883c9c2237f.zip
Fix(latex): Remove state full chapter files
Diffstat (limited to 'latex/headers')
-rw-r--r--latex/headers/preamble.tex9
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