From f1c12b900537e2f6661ad89923e7485c52fd2f82 Mon Sep 17 00:00:00 2001
From: Malin Freeborn <malinfreeborn@posteo.net>
Date: Mon, 12 Dec 2022 03:00:08 +0100
Subject: [PATCH] adjust section spacing

---
 layout.sty | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/layout.sty b/layout.sty
index 1a1eb185..53cf8aab 100644
--- a/layout.sty
+++ b/layout.sty
@@ -415,13 +415,14 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west)
 
 \newcommand{\sidebox}[2][23]{
 	\iftoggle{verbose}{
+    \needspace{4em}
 		\begin{wrapfigure}{R}{.#1\textwidth} 
 		#2
-		\end{wrapfigure}
+		\end{wrapfigure}%
 	}{
 		#2
 		
-	}
+	}%
 }
 
 % Chapter Heading Color
@@ -478,7 +479,7 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west)
     };
 }%
 }
-\titleformat{\section}{\large\needspace{10em}}{\titlebar}{0.1cm}{\textcolor{white}}
+\titleformat{\section}{\large\needspace{12em}}{\titlebar}{0.1cm}{\textcolor{white}}
 \renewcommand*{\thesection}{\arabic{section}}
 
 \titleformat{\subsection}
-- 
GitLab