Skip to content
Marei Peischl edited this page Oct 2, 2023 · 2 revisions

The table of contents is created by the default mechanism of KOMA-Script.

Page numbers lap into margin

(requested by #431)

There might be issues with extreme high page numbers since the space for those is limited. To avoid this in general one could use the class option toc=flat to switch to a flat toc layout. Alternatively one can extend the reserved space:

\DeclareTOCStyleEntries[pagenumberwidth=<length>]{tocline}{<levels>}

for example:

\DeclareTOCStyleEntries[pagenumberwidth=3em]{tocline}{part,chapter,section,subsection}
Clone this wiki locally