Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LaTeX breaking up too many words

Tags:

latex

I've written a document in LaTeX, using two-column format, 11pt, times font. Many of my words appear hyphenated, and for every description list item, I get a badbox warning (no problems visible in the output though). How can I fix this?

like image 254
TripShock Avatar asked Oct 22 '09 20:10

TripShock


People also ask

How do I stop words breaking in LaTeX?

The \nolinebreak command prevents LaTeX from breaking the current line at the point of the command. With the optional argument, number, you can convert the \nolinebreak command from a demand to a request. The number must be a number from 0 to 4. The higher the number, the more insistent the request is.

How do you keep words together in LaTeX?

The correct answer may be to put the two word in an \mbox{keep together} . Then you avoid hyphenation, but not overfull lines. Then, you can write \MSA/ (notice the slash), and LaTeX will not eat a following space. Unfortunately, such commands may be awkward to type keyboards other than US-English.

How do you force hyphenation in LaTeX?

The command \- inserts a discretionary hyphen into a word. This also becomes the only point where hyphenation is allowed in this word.


1 Answers

While, yes, you could make TeX less picky or even go the ragged option, this is best fixed by the microtype package. Just loading it should do the trick:

\usepackage{microtype}

It provides two features to improve the typesetting of paragraphs:

  • Margin kerning: characters, especially punctuation, will protrude a small fraction into the margin. Practically, this has the effect of very slightly increasing the line length and (IMO) visually looks very nice.
  • Font expansion: as well as stretching/shrinking the space between words to create a flush paragraph, the characters themselves are stretched/shrunk by very small amounts (less than one percent). This is visually imperceptible at the character level but, surprisingly, makes a huge difference at the paragraph level.
like image 139
Will Robertson Avatar answered Sep 27 '22 22:09

Will Robertson