cleanthesis icon indicating copy to clipboard operation
cleanthesis copied to clipboard

All Table of Content entries with three digit page numbers give Overfull hbox

Open atifraza opened this issue 4 years ago • 7 comments

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}% 

atifraza avatar Dec 31 '20 22:12 atifraza

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.

min-working-example.zip

atifraza avatar Jan 04 '21 15:01 atifraza

I get Overfull Hbox warnings even with the included example, does it compile clean on your platform?

dreua avatar Jan 04 '21 17:01 dreua

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.

atifraza avatar Jan 05 '21 01:01 atifraza

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

dreua avatar Jan 05 '21 08:01 dreua

Got an answer for the other Overfull hbox warnings on stackoverflow.

dreua avatar Jan 23 '21 20:01 dreua

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 avatar Jan 24 '21 14:01 atifraza

@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.

dreua avatar Jan 24 '21 15:01 dreua