cleanthesis
cleanthesis copied to clipboard
All Table of Content entries with three digit page numbers give Overfull hbox
My thesis is more than 100 pages long and all the TOC entries that have three-digit page numbers have associated Overfull hbox warnings, even though these entries are not multiline. Even the Bibliography entry has an associated Overfull hbox.
A snippet from the TOC file is pasted below. Please let me know if any other information is required.
\defcounter {refsection}{0}\relax
\contentsline {subsection}{\numberline {6.3.1}Results}{101}{subsection.6.3.1}%
\defcounter {refsection}{0}\relax
\contentsline {section}{\numberline {6.4}Conclusion}{102}{section.6.4}%
\defcounter {refsection}{0}\relax
...
\contentsline {chapter}{\nonumberline Bibliography}{111}{chapter*.43}%
I have created a minimum working example with a very long first chapter. Another thing I noted is that even the list of figures/tables have this issue.
I get Overfull Hbox warnings even with the included example, does it compile clean on your platform?
There are other Overfull hbox warnings, however, these specific ones occur only when the entries in the table of contents/figures/tables have a page number with three digits.
A MWE is attached as well CleanThesis-MWE.zip.
I changed line 8 in chapter one (introduction) to make the document longer than 100 pages. Commenting line 8 and uncommenting line 9 should give the exact release version for 0.4.1.
As a workaround for your 3 digit page numbers put this in your cleanthesis.sty (comments optional of course :wink: )
% Fix for 3 digit page numbers in TOC:
% patch size used in komascript according to
% (german only) http://projekte.dante.de/DanteFAQ/Verzeichnisse#2
\renewcommand\@pnumwidth{1.8em} % fits for 3 digit numbers
Example: https://www.overleaf.com/read/dcfhnzckzpsk
Got an answer for the other Overfull hbox warnings on stackoverflow.
Hi @dreua, I suspect PR 110 is related to the other Overfull hbox warnings. I cannot confirm right now due to a looming deadline.
@atifraza oh snap, I only searched the issues for the hbox issue and didn't see that PR. Thanks for the info, sadly it's too late now.