General ⇒ Kile warnings... annoying...
Kile warnings... annoying...
I'm using Kile to compile my latex project.
However, always receiving the following warning messages:
1) Underfull \hbox (badness 10000) in paragraph
2) Overfull \vbox(3.01317pt too high) has occurred while \output is active []
3) 'h' float specifier changed to 'ht'
4) Token not allowed in a PDFDocEncoded string,(hyperref) removing 'math shift' on input line 454
etc.
Details of those warning messages can be found in the attached .log file.
How to actually avoid those annoying warning messages?
Best Regards
JIA
However, always receiving the following warning messages:
1) Underfull \hbox (badness 10000) in paragraph
2) Overfull \vbox(3.01317pt too high) has occurred while \output is active []
3) 'h' float specifier changed to 'ht'
4) Token not allowed in a PDFDocEncoded string,(hyperref) removing 'math shift' on input line 454
etc.
Details of those warning messages can be found in the attached .log file.
How to actually avoid those annoying warning messages?
Best Regards
JIA
- Attachments
-
- Dissertation.log
- (49.93 KiB) Downloaded 334 times
NEW: TikZ book now 40% off at Amazon.com for a short time.

Kile warnings... annoying...
Well, the solution is to use OpenOffice.org or Microsoft Word then.
Seriously, those warnings aren't there for no reason. They're telling you about potential problems and really should be there. Even if you can turn them off, you SHOULD NOT.
E.g. First warning tells you that LaTeX cannot stretch the line wide enough to fit, without making the spacing bigger than its currently permitted maximum...
Take a look for a quick explanation here and here (hyperref).
Seriously, those warnings aren't there for no reason. They're telling you about potential problems and really should be there. Even if you can turn them off, you SHOULD NOT.
E.g. First warning tells you that LaTeX cannot stretch the line wide enough to fit, without making the spacing bigger than its currently permitted maximum...
Take a look for a quick explanation here and here (hyperref).
Re: Kile warnings... annoying...
Haha...
Thanks man.
I'll not resort to MS Office or Open Office anyway.
Thanks for your kind explanation.
Best Regards
JIA
Thanks man.
I'll not resort to MS Office or Open Office anyway.
Thanks for your kind explanation.
Best Regards
JIA
Kile warnings... annoying...
Generally, you can eliminate some warnings, but that requires that you change corresponding code (like \vbadness or \hbadness) and fiddle with TeX primitives (which is not such a good idea). Unfortunately, the best way is the hard one: attend to lines causing those warnings and make necessary corrections (e.g. change yourself "h" to "ht" for #3, use the code from the link I provided to correct pdf bookmark issue in #4 etc.).
However, here you can find some infos about disabling (some) warnings. Hope it'll help. But be careful.
P.S. Of course, I recommend that you check out comp.text.tex for more infos or ask there if you don't get satisfactory answer here.
Best regards,
M.
However, here you can find some infos about disabling (some) warnings. Hope it'll help. But be careful.
P.S. Of course, I recommend that you check out comp.text.tex for more infos or ask there if you don't get satisfactory answer here.
Best regards,
M.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Kile warnings... annoying...
At first you should know that it isn't Kile which is complaining, but it's the LaTeX compiler.
Best regards
Thorsten
Self-expanatory. The line cannot be filled properly. Some measures may help.jiapei100 wrote:[...] 1) Underfull \hbox (badness 10000) in paragraph [...]
- Additional lines for the preamble
Code: Select all
\emergencystretch20pt % More blank space to put in to lines \tolerance1000 % value for degree of inadequate line filling
- The microtype package.
An overfull vertical box is mostly equal to an overfull page. Presumably you have forced the output of a big object where there isn't enough space left.jiapei100 wrote:[...] 2) Overfull \vbox(3.01317pt too high) has occurred while \output is active [] [...]
You have given the placement parameter [h] to a float environment. In opposite to your presumption, the compiler won't force the output of this float where you declared it in the source. This [h] alone leaves no margin to the compiler thus makes no sense and is overwritten with [ht]. So you have to give at least the latter one. My best experience is with [!ht].jiapei100 wrote:[...] 3) 'h' float specifier changed to 'ht' [...]
As already mentioned, this warning occurs when math expressions appear in headings. The hyperref package runs intro trouble because it wants to generate bookmarks for the resulting PDF. But the LaTeX syntax is inadequate. To solve this, search the package manual for »texorpdfstring«.jiapei100 wrote:[...] 4) Token not allowed in a PDFDocEncoded string,(hyperref) removing 'math shift' on input line 454 [...]
Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Kile warnings... annoying...
Thank you so much Thorsten .
However, I couldn't even find which line is the warning message referring to.
As you can see from my .log file, there is something like
which paragraph is it?
where is it?
How can I get the specific block of Latex code that some warning is referring to?
Cheers
JIA
However, I couldn't even find which line is the warning message referring to.
As you can see from my .log file, there is something like
Code: Select all
Underfull \hbox (badness 10000) in paragraph at lines 64--78
Code: Select all
Overfull \vbox (3.01317pt too high) has occurred while \output is active []
How can I get the specific block of Latex code that some warning is referring to?
Cheers
JIA
-
- Posts: 162
- Joined: Wed Jun 17, 2009 10:18 pm
Kile warnings... annoying...
Note that it says "at lines 64 -- 78". This means that the underfull box appears at those lines in your source code. I do not know what editor you use, but most or all LaTeX-editors I've tried has the ability to show line numbers. That makes it easy to find the error.jiapei100 wrote:Thank you so much Thorsten .which paragraph is it?Code: Select all
Underfull \hbox (badness 10000) in paragraph at lines 64--78
JIA
As for the overfull vbox, I do not know how to find out where that occurs.
Re: Kile warnings... annoying...
Hi,
I am using Kile 2.1 Beta 2
Even there is a line number, since in my main.tex file, I included several sub .tex files
Say:
main.tex
chapter1.tex
chapter2.tex
chapter3.tex
chapter4.tex
I'm still not able to find which line is it? in which .tex? chapter1.tex? or chapter2.tex? or something else?
So, what IED/Editor are you using?
Cheers
JIA
I am using Kile 2.1 Beta 2
Even there is a line number, since in my main.tex file, I included several sub .tex files
Say:
main.tex
chapter1.tex
chapter2.tex
chapter3.tex
chapter4.tex
I'm still not able to find which line is it? in which .tex? chapter1.tex? or chapter2.tex? or something else?
So, what IED/Editor are you using?
Cheers
JIA
-
- Posts: 162
- Joined: Wed Jun 17, 2009 10:18 pm
Kile warnings... annoying...
I use Kile myself. The warnings in the "Logs and Messages" panel are links, so you should be able to just click on them, and the relevant (sub)document will be opened, with the cursor at the problematic line.
Edit: Fixed a small typo.
Edit: Fixed a small typo.