Skip to content

Commit

Permalink
[patch] Fix spacing in TOC
Browse files Browse the repository at this point in the history
Fix too-tight spacing between numbers and section titles in the table of
contents.

Fixes #90.

Signed-off-by: Schuyler Eldridge <[email protected]>
  • Loading branch information
seldridge committed Apr 1, 2023
1 parent 2e7dbe2 commit 5cdd05e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions include/spec-template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,18 @@
$endif$
$endif$

$if(toc)$
\usepackage{tocloft}
% Section spacing
\setlength\cftsecnumwidth{2em}
% Subsection indent/spacing
\setlength\cftsubsecindent{2em}
\setlength\cftsubsecnumwidth{3em}
% Subsubsection indent/spacing
\setlength\cftsubsubsecindent{5em}
\setlength\cftsubsubsecnumwidth{3em}
$endif$

$if(beamer)$
$if(background-image)$
\usebackgroundtemplate{%
Expand Down

1 comment on commit 5cdd05e

@seldridge
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this, the problematic TOC area now looks like:

Screen Shot 2023-04-01 at 00 24 24

Please sign in to comment.