There are already many questions here about the space after a number in a table of contents. This one already displays the problem I am facing, but I don't like the solution provided.
What I'd like is all TOC texts after numbers to have the same distance to the numbers, instead of setting one static value for one level, which results in different distances, when the numbers begin to take more space, because of more digits. In other words, I would like the space after the TOC numbers to be always equal.
How can I achieve that?
Here is a tiny example of the wanted result:
...
9. [space equal] TEXT
10. [space equal] TEXT
...
100. [space equal] TEXT
...
100000. [space equal] TEXT
Instead of the space varying the text moves further to the right, to allow the same space everywhere.
Edits
- I am using the book class.
- My document does not have thousands of chapters, it is only an example to make the meaning even more obvious : ) A general solution to such a problem independent of the range of chapter /section / subsection / ... numbers would be great though, as I imagine there might be others who could want this in the future.
9.
to10.
?