From 45de8092565c7dad945f80169aaa8883c9c2237f Mon Sep 17 00:00:00 2001
From: Soispha <soispha@vhack.eu>
Date: Mon, 21 Aug 2023 01:22:57 +0200
Subject: Fix(latex): Remove state full chapter files

---
 latex/headers/preamble.tex | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

(limited to 'latex/headers/preamble.tex')

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
-- 
cgit 1.4.1

