Skip to content

Remove workaround related to subsection page wrapping #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions template/eisvogel.latex
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,10 @@ $endif$
\newunicodechar{→}{\textfallback{→}}

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

%
% variables for title, author and date
Expand Down Expand Up @@ -692,14 +692,6 @@ $endif$
beforeskip=.5\baselineskip,
afterskip=0em]{subparagraph}

% % Subsections don't wrap to a new page by default.
% % Workaround from https://tex.stackexchange.com/questions/162236/subsection-on-new-page-if-it-doesnt-fit
\preto{\section}{\clearpageafterfirst}
\preto{\subsection}{\filbreak}
\newcommand{\clearpageafterfirst}{%
\gdef\clearpageafterfirst{\clearpage}%
}

% Allow TCG documents to use '\beginappendices' to easily mark the transition to appendices.
\usepackage{appendix}
\newcommand{\beginappendices}{
Expand Down