[pve-devel] [PATCH pve-docs 3/3] Fixed kerning in table of contents
Noel Ullreich
n.ullreich at proxmox.com
Tue Jan 3 14:31:21 CET 2023
changed horizontal spacing of section and subsection so that numbers
and titles would no longer overlap
Signed-off-by: Noel Ullreich <n.ullreich at proxmox.com>
---
asciidoc/dblatex-custom.sty | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/asciidoc/dblatex-custom.sty b/asciidoc/dblatex-custom.sty
index 02fbe16..c85ca34 100644
--- a/asciidoc/dblatex-custom.sty
+++ b/asciidoc/dblatex-custom.sty
@@ -10,6 +10,7 @@
%\usepackage[a4paper]{geometry}
\usepackage[a4paper, left=2cm, right=1cm, top=2.5cm, bottom=2cm ]{geometry}
+\usepackage[subfigure]{tocloft}
%% Just use the original package and pass the options.
\RequirePackageWithOptions{docbook}
@@ -67,6 +68,10 @@
\pagebreak[4]
}
+% fix kerning in contents page
+\cftsetindents{section}{1.5em}{2.5em}
+\cftsetindents{subsection}{4em}{3.5em}
+
% to correctly break inline code the texttt command needs to be renewed
\DeclareRobustCommand{\texttt}[1]{
\begingroup%
--
2.30.2
More information about the pve-devel
mailing list