On 11/25/2010 01:39 AM, Michael Joyner wrote:
We are using Lyx for automatically formated PDF creation at my job.
We ended up putty \begin{sloppy} at the very beginning of the document, and closing off with \end{sloppy} as the very last thing. It seems rather strange for the default behavior of latex to have text over-run the margins (IMHO)

Let me second Gunter's remarks about this. If you want it to be entirely automated, then this is a fine solution, but the reason it isn't the default behavior is that, when the text does overrun the margin, this is due to an "overful hbox" that LaTeX itself does not know how to resolve within the parameters that have been set. The definition of \sloppy is just:

\def\sloppy{%
  \tolerance 9999%
  \emergencystretch 3em%
  \hfuzz .5\p@
  \vfuzz\hfuzz}

So it's resetting how tolerant LaTeX is of bad lines, and allowing it to insert extra whitespace between words. Here's fussy:

\def\fussy{%
  \emergencystretch\z@
  \tolerance 200%
  \hfuzz .1\p@
  \vfuzz\hfuzz}

So you can also adjust these yourself, to more relaxed, but not completely relaxed, limits.

    I have just installed Lyx on a MacBook and have tried to format
    some test
    copy. Everything is fine except that whenever a hyphenated word
    appears at
    the end of a line it is not properly justified. The hyphenated
    word just
    hangs out in the margin.

This is almost certainly not true, i.e., that "whenever a hyphenated word appears", you get this problem. It will happen sometimes, for the reasons given, but if it's happening every time, then that is just bad luck.

Richard

Reply via email to