Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
atifraza opened this issue Dec 31, 2020 · 7 comments

Comments

@atifraza
Copy link

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
Copy link
Author

atifraza commented Jan 4, 2021

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
Copy link

dreua commented Jan 4, 2021

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

@atifraza
Copy link
Author

atifraza commented Jan 5, 2021

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
Copy link

dreua commented Jan 5, 2021

As a workaround for your 3 digit page numbers put this in your cleanthesis.sty (comments optional of course 😉 )

% 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
Copy link

dreua commented Jan 23, 2021

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

@atifraza
Copy link
Author

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
Copy link

dreua commented Jan 24, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants