From 04f909bc9bb64d78932c5d427f267fb6e580ce5d Mon Sep 17 00:00:00 2001 From: Malin Freeborn <malinfreeborn@posteo.net> Date: Fri, 29 Jul 2022 19:06:15 +0200 Subject: [PATCH] add \needspace to headers --- layout.sty | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/layout.sty b/layout.sty index 7a4ee259..1a1eb185 100644 --- a/layout.sty +++ b/layout.sty @@ -478,11 +478,11 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west) }; }% } -\titleformat{\section}{\large\needspace{8em}}{\titlebar}{0.1cm}{\textcolor{white}} +\titleformat{\section}{\large\needspace{10em}}{\titlebar}{0.1cm}{\textcolor{white}} \renewcommand*{\thesection}{\arabic{section}} \titleformat{\subsection} -{\needspace{4em}\normalfont\normalsize\bfseries}{\thesubsection}{1em}{} +{\needspace{7em}\normalfont\large\bfseries}{\thesubsection}{1em}{} % \titleformat{\subsubsection} @@ -588,6 +588,7 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west) }% \newcommand{\spelllevel}{% + \needspace{10em} \addtocounter{spelllevel}{1}% \subsection{\currentsphere~ Level \arabic{spelllevel}}% } @@ -679,7 +680,7 @@ Roll & Result \\ \newcommand{\li}{\addtocounter{enc}{-1}\arabic{enc}&} \newcommand{\lii}{\addtocounter{list}{-1}\arabic{list}&} -\newtcolorbox{boxtable}[1][c|X]{ +\newtcolorbox{boxtable}[1][cX]{ tabularx={#1}, top=10pt, bottom=10pt, -- GitLab