0

Context: I am using Lyx with the KOMA-Script-Book class to generate a book with a table of contents. I am not using any special hacks, just the vanilla configuration via the Lyx GUI. My preamble has only one line of code \setcounter{chapter}{-1}.

Problem: The contents page shows the chapter numbers too close to the chapter titles. See image below to best illustrate the problem.

Any suggestions for how to fix?

enter image description here

Penelope
  • 185

2 Answers2

1

Try \KOMAoptions{toc=flat}. Or read the KOMA documentation about more options to adapt the table of contents.

Ulrike Fischer
  • 327,261
0

I have no idea about Lyx (what is it?) but for the traditional classes (book, report, article) the tocloft package lets you do what you want.

\usepackage{tocloft}
\addtolength{\cftchapnumwidth}{2em} % increase space for chapter numbers
Peter Wilson
  • 28,066
  • thanks Peter - useful reply. I found the solution by Ulrike was simpler for Lyx. Lyx is a GUI for editing documents typeset by latex which aims to be zero-code (but clearly keeps failing. https://en.wikipedia.org/wiki/LyX – Penelope Dec 13 '22 at 21:03
  • as Penelope uses the KOMA classes, tocloft is probably not the best solution. – Ulrike Fischer Dec 13 '22 at 21:12