From da8ccb053213b10d06dec0e3850228209729a90d Mon Sep 17 00:00:00 2001
From: Malin Freeborn <malinfreeborn@tutamail.com>
Date: Sun, 15 Mar 2020 21:53:16 +0100
Subject: [PATCH] adjust needspace

---
 preamble.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/preamble.tex b/preamble.tex
index e2940925..9761e8a8 100644
--- a/preamble.tex
+++ b/preamble.tex
@@ -117,7 +117,7 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west)
 \titleformat{\subsection}{\needspace{8em}\center\large\bfseries}{}{1em}{}[\rule{.9\linewidth}{.2pt}]
 %
 \titleformat{\subsubsection}
-{\normalfont\normalsize\bfseries}{\thesubsubsection}{1em}{}
+{\needspace{3em}\normalfont\normalsize\bfseries}{\thesubsubsection}{1em}{}
 
 %\titleformat{\paragraph}[runin]
 %{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
@@ -228,7 +228,7 @@ Roll & Result \\
 {\end{tabular}}
 
 
-\newenvironment{exampletext}{\needspace{4cm}\vspace{.3cm}
+\newenvironment{exampletext}{\needspace{2em}\vspace{.3cm}
 
 \rule{.9\linewidth}{0.2pt}
 
-- 
GitLab