> I get a number of "Underfull \hbox (badness 10000) in paragraph at
> lines..." warning when I generate a LaTeX PDF in Sphinx 1.1.2.
This is just a warning. Have a look at the PDF output on the relevant
line(s) and see if you can just ignore it.
Günter
Cheers
Kristina
TeX produces warnings for various aesthetic concerns. IIRC, "underfull
\hbox" means the paragraph had to be wrapped at a point that leaves too
much white space on a line.
You can rewrite it using different words, or you can add hyphenation
hints for the particular long word if TeX was unable to hyphenate it by
itself (no idea how to do that in Sphinx, though, but I'm sure the
excellent docs cover it).
Or you can look at the PDF, decide it is fine, and ignore the warning.
Marius Gedminas
--
There is an almost obvious extension of interfaces that would allow formal
specification of arguments and return values. We suspect it leads to the dark
side.
-- Jim Fulton
Thank you very much for your explanation. It is interesting though
that one of the underfull warnings is only given for "warning" but not
"note". However, as it is just a warning, I'll review them and see if
I can ignore them.
Cheers
Kristina
> Thank you very much for your explanation. It is interesting though
> that one of the underfull warnings is only given for "warning" but not
> "note". However, as it is just a warning, I'll review them and see if
> I can ignore them.
The "underful \hbox warning means that a line is too short
(i.e. not reaching the right margin). This means it very much depends on the
content of the admonition (warning, note, ...) whether this warning occurs.
I suppose you will see this warning with a note too, if you change the notes
content - just play with it (most simply by changing the generated LaTeX
source and re-running latex...).
Of course, a clean solution would be to avoid needless warnings (as they
tend to mask the places where the warnings are sensible). Maybe the
Sphinx-generated LaTeX source is not "clean" and could be improved.
BTW: overfull \hbox warnings might be far more serious: they signify a line
that goes into the margin. Sometimes this is not visible (1 pt or so) but
sometimes (especially with teletype/monospace/literal text) it requires
action.
Günter
Thank you very much for your further explanations. I'll try to
remember / read up on how to compile LaTeX by hand (have only done so
once or twice years ago and very much enjoy the ease of use of Sphinx
taking care of everything) to follow your instructions.
I imagined the overfull to be more problematic as I ran into that with
a table an an image (hence the question about the table/cell widths in
another thread) as I saw that the table runs all the way to the
margin.
I prefer the HTML output much better as it seems that I can control it
more easily (probably due to my lack of LaTeX knowledge), but wanted
to tackle and learn more about the background of some of the warning
trying to get rid of them so that real error messages stand out
better.
The Sphinx output when compiling the documentation is very helpful to
spot the more obvious errors or mishaps which have saved me a few
times. :-)
Thank you very much for your help.
Cheers
Kristina