From 9491a011cabf63130d9e194c02755dec1923db7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20D=C3=BCnkelmann?= Date: Sun, 28 Jul 2024 14:57:54 +0200 Subject: [PATCH] feat: avoid overflow in toc and lof MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit by using the tocloft package Signed-off-by: Martin Dünkelmann --- aussehen/hbrs-inf.sty | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/aussehen/hbrs-inf.sty b/aussehen/hbrs-inf.sty index 14e7e4b..297f0b2 100644 --- a/aussehen/hbrs-inf.sty +++ b/aussehen/hbrs-inf.sty @@ -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}