Skip to content

Commit

Permalink
feat: avoid overflow in toc and lof
Browse files Browse the repository at this point in the history
by using the tocloft package

Signed-off-by: Martin Dünkelmann <nc-duenkekl3@netcologne.de>
  • Loading branch information
MartinX3 committed Jul 28, 2024
1 parent a4995c8 commit 9491a01
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions aussehen/hbrs-inf.sty
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}

% Avoids overlapping of the chapter numbers and the title in the list of figures
% This happens if the chapter numbr is 10.10 and higher
\makeatletter
\renewcommand*\l@figure{\@dottedtocline{1}{1em}{3.2em}}
\makeatother
% Avoids overflow in table of contents and list of figures
\RequirePackage[titles]{tocloft}
% Margin to the page number
\cftsetrmarg{4em}
% Margin from the figure number
\cftsetindents{figure}{0em}{4em}

% Deutsch
\RequirePackage[ngerman]{babel}
Expand Down

0 comments on commit 9491a01

Please sign in to comment.