Skip to content

Commit

Permalink
increase toc spacing, try moving toc workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisfenner committed Dec 9, 2023
1 parent a07741d commit ccf10fd
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions template/eisvogel.latex
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ $endif$

% Clean up the TOC a bit by ensuring that long section numbers don't overlap.
\usepackage{tocloft}
\renewcommand*{\cftsecnumwidth}{4em}
\renewcommand*{\cftchapnumwidth}{8em}
\renewcommand*{\cftsecnumwidth}{8em}
\renewcommand*{\cftsubsecnumwidth}{8em}
\renewcommand*{\cftsubsubsecnumwidth}{8em}

\usepackage{amsmath,amssymb}
\usepackage{mathtools}
Expand Down Expand Up @@ -213,14 +216,6 @@ $endif$
\makesavenoteenv{longtable}
$endif$

% % 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}%
% }

\usepackage{footnotebackref}
$if(graphics)$
\usepackage{graphicx}
Expand Down Expand Up @@ -710,6 +705,14 @@ $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}%
}

\newcommand{\coverbg}{/resources/img/greentop.png}

$if(template)$
Expand Down

0 comments on commit ccf10fd

Please sign in to comment.