60

I have this warnings around, some of them seems to be solved naturally but I never really understand what do they mean.

What this means?

Edit: I would like to keep the question in more general terms, but in this particular case the source code related to this warning is the following:

\item {\bf Finalização} onde são finalizados os histogramas, eventualmente traçadas curvas de ajuste \emph{(fit)} e guardados os resultados no disco.

Possible duplicate: This question solves the debug issue of this.

PS: Sorry if this question is quite newbie.

10
  • 9
    In simple words, it means you have a line of text that is too wide (9.8961pt too wide to be precise) to fit in one line, so the program tries to break it unsuccessfully, hence the warning. May 2 '13 at 15:00
  • 1
    But the generated pdf has this line just has expected (I will put the corresponding source in the question)
    – RSFalcon7
    May 2 '13 at 15:04
  • not really. What happens is that 9.89561pt = 3.49mm, which is almost nothing for the naked (inexperienced?) eye to see. May 2 '13 at 15:07
  • 9
    @MarioS.E. 9.89...pt is, in Computer Modern @10pt, almost the width of one-and-a-half ms. There might be people unable to see that with the naked eye, but what these people need isn't experience, but new glasses ;)
    – Nils L
    May 2 '13 at 15:18
  • 4
    @RSFalcon7 It's important because the hyphenation of each word is given according to the language May 2 '13 at 20:07
37

The allowed space between two words is given by the interwordspace (\fontdimen2\font) and interwordstretch (\fontdimen3\font). If it is not possible to set a paragraph with these lengths (with hyphenation) TeX will complain with a overfull or underfull box. Setting the \emergencystrech to a value greater than 0pt it can stretch the interwordspace to a bigger value. You can set this value individually or using \sloppy or the environment sloppypar

\documentclass[draft]{article}
\usepackage[textwidth=4.5cm]{geometry}
\usepackage{blindtext}
\parindent=0pt
\begin{document}
interwordspace: \the\fontdimen2\font \\

interwordstretch: \the\fontdimen3\font \\

emergencystretch: \the\emergencystretch\par
\blindtext

\newpage
\begin{sloppypar}
interwordspace: \the\fontdimen2\font \\

interwordstretch: \the\fontdimen3\font \\

emergencystretch: \the\emergencystretch\par
\blindtext
\end{sloppypar}

\end{document}

enter image description hereenter image description here

1
3

for my case, the easiest solution that I found is to add \begin{sloppypar} after \maketitle and to add \end{sloppypar} at the end of my document. It worked like charm: I don't have any text going out of the columns anymore. My document tex looks like:

\begin{document}
% title + keywords + abstract 
\maketitle
\begin{sloppypar}
% document body
\end{sloppypar}
\end{document}
6
  • Please, can you put a MWE to see your solution?
    – Sebastiano
    Jan 7 at 20:03
  • i don't understand what do you mean with MWE? I had the overfull issue and I could fix it by adding sloppypar ... have you tried it? didn't work for you? Jan 7 at 20:12
  • I have only asked only to put a minimal working example (MWE) of your solution starting from \documentclass to \end{document}.
    – Sebastiano
    Jan 7 at 20:32
  • sloppy and sloppypar allow large spaces between words. Using them is a last resort, not something for the whole document. Jan 7 at 21:32
  • 1
    Worked like a charm Apr 1 at 4:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.