Skip to content

Commit 90d518c

Browse files
authored
Remove workaround related to subsection page wrapping (#65)
* Remove workaround related to subsection page wrapping This workaround that involved invoking \clearpageafterfirst seems to wreak havoc on long tables when they are positioned in just the wrong way. * add clearpage before sections to preserve sections being at the top of their pages
1 parent cc3f3c4 commit 90d518c

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

template/eisvogel.latex

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -400,10 +400,10 @@ $endif$
400400
\newunicodechar{→}{\textfallback{→}}
401401

402402
%
403-
% heading color
403+
% Set the heading color and ensure that every section begins on its own page.
404404
%
405405
\definecolor{heading-color}{RGB}{35,61,130}
406-
\addtokomafont{section}{\color{heading-color}}
406+
\addtokomafont{section}{\clearpage \color{heading-color}}
407407

408408
%
409409
% variables for title, author and date
@@ -692,14 +692,6 @@ $endif$
692692
beforeskip=.5\baselineskip,
693693
afterskip=0em]{subparagraph}
694694

695-
% % Subsections don't wrap to a new page by default.
696-
% % Workaround from https://tex.stackexchange.com/questions/162236/subsection-on-new-page-if-it-doesnt-fit
697-
\preto{\section}{\clearpageafterfirst}
698-
\preto{\subsection}{\filbreak}
699-
\newcommand{\clearpageafterfirst}{%
700-
\gdef\clearpageafterfirst{\clearpage}%
701-
}
702-
703695
% Allow TCG documents to use '\beginappendices' to easily mark the transition to appendices.
704696
\usepackage{appendix}
705697
\newcommand{\beginappendices}{

0 commit comments

Comments
 (0)