See the title. Examples: the Danish words "databehandling" and "programmeringssproget" are not hyphenated correctly.

asked 08 Jan '12, 14:52

Martin%20Dybdal's gravatar image

Martin Dybdal ♦♦
1.1k123282
accept rate: 69%

edited 10 Jan '12, 13:32

Nana%20Girotti's gravatar image

Nana Girotti ♦
1164


You can correct hyphenation for certain words by using the \hyphenation command:

\hyphenation{da-ta-be-hand-ling, pro-gram-me-rings-sprog-et, COBOL}

Following this, all uses of those words will use the hyphenation given there.

If you only need the hyphenation changed in one place, you can use \- instead, to mark where a word is allowed to be hyphenated:

Jeg har længe arbejdet med da\-ta\-be\-hand\-ling, og det er bare monster godt.

See also:

link

answered 08 Jan '12, 16:39

Sebastian%20Paaske%20T%C3%B8rholm's gravatar image

Sebastian Pa... ♦♦
86531133
accept rate: 41%

edited 08 Jan '12, 16:42

The trick is to use a combination of hyphenation hints and the babel package:

...
\usepackage[danish]{babel}
...

Babel will automatically hyphenate a lot of words correctly. But if a certain word fail, you can do

...
\begin{document}
\hyphenation{da-ta-be-hand-ling pro-gram-merings-sprog-et}
...
\end{document}

To hint the hyphenation engine about it. Another very important package to get enabled in this game is the microtype package:

\usepackage{microtype}

and then render using the pdflatex command. Microtype adds sub-point kerning, protrusion, font expansion to the tool set of LaTeX. It severely limits the need for hyphenation throughout the document and will fix many of your overful h-boxes as well.

link

answered 08 Jan '12, 19:04

jlouis's gravatar image

jlouis
6163
accept rate: 50%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×122
×12

Asked: 08 Jan '12, 14:52

Seen: 6,978 times

Last updated: 10 Jan '12, 13:32

powered by OSQA