LyXAuto line breaking

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
thrwy1111
Posts: 1
Joined: Sun Jan 13, 2013 4:36 am

Auto line breaking

Post by thrwy1111 »

Sometimes, I find my documents contain lines where the last word is too long and extends beyond the right margin. Is there a way to get past this without having to manually enter a line break every time something like this occurs?

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Auto line breaking

Post by cgnieder »

Hi and welcome to the LaTeX community!

These are probably words where LaTeX doesn't know how to break them. There can be several reasons:
  • the language settings for the document are wrong
  • they are words in another language than the main document
  • often they are words containing one or more explicit hyphen which means that LaTeX thinks it is only allowed to break the word at the hyphen; in these cases one can use babel's shorthands if they're available for the document language to use hyphens that allow breaking in the rest of the word, too, or use \- to insert an implicit hyphen
  • they are words containing a slash; this case is similar to the explicit hyphen case.
Regards
site moderator & package author
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Auto line breaking

Post by Stefan Kottwitz »

Hi,

welcome to the board!

In addition to Clemens advice, here is a list of tips for better line breaking: Re: Formatting problem with long words

Stefan
LaTeX.org admin
Post Reply