Time for action – stating division points for words

No matter how good the justification skill is, text in very narrow columns is extremely hard to justify. The previous example showed it pitiless. We will tell LaTeX how a word could be divided:

  1. Insert the following line into the preamble of the previous example:
    \hyphenation{acro-nym}
  2. Typeset and look at the output:
    Time for action – stating division points for words

What just happened?

We've told LaTeX that the word acronym may have a division point between acro and nym. That means a hyphen might be put after acro at the end of the line and nym goes to the following line.

The \hyphenation command tells LaTeX where the division points of a word may be. ...

Get LaTeX Beginners Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.