LyXIs this an example of fine-tuning?

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

Is this an example of fine-tuning?

Post by insipidtoast »

Adding an ERT hyphenation in order to force a word to finish on the next line, so that it is not hanging out in the margin.

If so, then why should I wait until the very end of the typesetting process to fix this error?
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class

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

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Is this an example of fine-tuning?

Post by Stefan Kottwitz »

Yes, sometimes hyphenation is not perfect and should be manually corrected. Because hyphenation places may still change during writing and correcting, it's a good idea to check hyphenation at the end.

You don't need ERT in the document for this. You can gather all extra allowed hyphenations in the document LaTeX preamble, using the \hyphenation command. In the argument, list words separated by spaces, and mark allowed hypenation points by a dash. In contrast to ERT in the document body, this will have effect for each occurrences of such a word. And you can to this also while writing, as a precaution.

Btw. ensure that you specified the language of the document, so the proper hyphenation pattern is selected, and use T1 font encoding, especially if words with special characters, such as accents, are a problem.

Stefan
LaTeX.org admin
insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

Re: Is this an example of fine-tuning?

Post by insipidtoast »

Thanks. I'll wait until the end to insert ERT hyphens.
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class
Post Reply