derric / cleanthesis

Clean Thesis is a clean, simple, and elegant LaTeX style (or template) for thesis documents.
http://cleanthesis.der-ric.de/
902 stars 116 forks source link

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

Open atifraza opened 3 years ago

atifraza commented 3 years ago

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 commented 3 years ago

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

dreua commented 3 years ago

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

atifraza commented 3 years ago

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.

dreua commented 3 years ago

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 commented 3 years ago

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

atifraza commented 3 years ago

Hi @dreua, I suspect PR 110 is related to the other Overfull hbox warnings. I cannot confirm right now due to a looming deadline.

dreua commented 3 years ago

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