LyX ⇒ Erroneous linebreak
Erroneous linebreak
I'm new to LaTeX and LyX... I started writing a Text in LyX using the KOMA-script report class.
But now I stumbled upon a little problem:
One line in a paragraph doesn't seem to break within the boundaries of the justified text. When I change the documentclass back to report, the text looks good again.
I tried to insert \- in some words but that didn't change anything. Also removing the underscores in the last word didn't help.
I created a minimal example and attached it to this thread.
Thanks for your help!
- Attachments
-
- rendered output
- Screenshot.gif (15.75 KiB) Viewed 4804 times
-
- error.zip
- the example LyX file
- (838 Bytes) Downloaded 202 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: Erroneous linebreak
Re: Erroneous linebreak
Thanks for your Answer. I used the \linebreak command, because I didn't want the Signalname to be broken apart.
What keeps TeX from breaking the whole word to the next line? Is there a maximum value for the allowable white space between words? And if so, can I edit it in such cases?
Re: Erroneous linebreak
However, the easiest thing is to put it in a sloppy environment, or use the \sloppy declaration.
\begin{sloppy}
Paragraph with overfull boxes goes here.
\end{sloppy}
Or just:
\sloppy
at the beginning of the document.
Erroneous linebreak
I would go with \begin{sloppy}...\end{sloppy}. Putting \sloppy at the beginning of the document isn't such a good idea.frabjous wrote:You could add to the value "\emergencystretch" to increase the amount of whitespace it'll add to a line.
However, the easiest thing is to put it in a sloppy environment, or use the \sloppy declaration.
\begin{sloppy}
Paragraph with overfull boxes goes here.
\end{sloppy}
Or just:
\sloppy
at the beginning of the document.
@OP: you should use \linebreak sparingly. At occasions like this, not at all. As frabjous suggested, put an ERT box before that paragraph with problematic line break and type in it: \begin{sloppy}, and after the paragraph put another ERT box and type in it: \end{sloppy}.