GeneralKile warnings... annoying...

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
User avatar
jiapei100
Posts: 28
Joined: Sat Jan 12, 2008 7:23 pm

Kile warnings... annoying...

Post by jiapei100 »

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
Attachments
Dissertation.log
(49.93 KiB) Downloaded 334 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Kile warnings... annoying...

Post by meho_r »

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).
User avatar
jiapei100
Posts: 28
Joined: Sat Jan 12, 2008 7:23 pm

Re: Kile warnings... annoying...

Post by jiapei100 »

Haha...

Thanks man.

I'll not resort to MS Office or Open Office anyway.

Thanks for your kind explanation.

Best Regards
JIA
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Kile warnings... annoying...

Post by meho_r »

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.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Kile warnings... annoying...

Post by localghost »

At first you should know that it isn't Kile which is complaining, but it's the LaTeX compiler.
jiapei100 wrote:[...] 1) Underfull \hbox (badness 10000) in paragraph [...]
Self-expanatory. The line cannot be filled properly. Some measures may help.
  • 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.
The last point is preferable. In case you are using a Postscript Type 1 font, the package has to be included after the concerned font package
jiapei100 wrote:[...] 2) Overfull \vbox(3.01317pt too high) has occurred while \output is active [] [...]
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:[...] 3) 'h' float specifier changed to 'ht' [...]
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:[...] 4) Token not allowed in a PDFDocEncoded string,(hyperref) removing 'math shift' on input line 454 [...]
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«.


Best regards
Thorsten
User avatar
jiapei100
Posts: 28
Joined: Sat Jan 12, 2008 7:23 pm

Kile warnings... annoying...

Post by jiapei100 »

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

Code: Select all

Underfull \hbox (badness 10000) in paragraph at lines 64--78
which paragraph is it?

Code: Select all

Overfull \vbox (3.01317pt too high) has occurred while \output is active []
where is it?


How can I get the specific block of Latex code that some warning is referring to?

Cheers
JIA
torbjorn t.
Posts: 162
Joined: Wed Jun 17, 2009 10:18 pm

Kile warnings... annoying...

Post by torbjorn t. »

jiapei100 wrote:Thank you so much Thorsten .

Code: Select all

Underfull \hbox (badness 10000) in paragraph at lines 64--78
which paragraph is it?
JIA
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.

As for the overfull vbox, I do not know how to find out where that occurs.
User avatar
jiapei100
Posts: 28
Joined: Sat Jan 12, 2008 7:23 pm

Re: Kile warnings... annoying...

Post by jiapei100 »

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
torbjorn t.
Posts: 162
Joined: Wed Jun 17, 2009 10:18 pm

Kile warnings... annoying...

Post by torbjorn t. »

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.
Post Reply