I recently had to switch from OS X to Ubuntu and am having trouble with babel's German hyphenation since.
I am running texlive 2015 on Ubuntu 15.10. I installed both TeX and the German language package from the Ubuntu software center. I do not get any error messages but the hyphenation of very many simple German words is simply wrong. In a long document such as a thesis I cannot fix this manually for each occurence.
On an old Macbook (running Snow Leopard and the latest MacTex) I do not have these problems when I compile the same documents that look so terrible now.
I can see why babel may not be able to hyphenate the long noun I entered the \hyphenation
command for in the MWE below but I see no excuses for the shorter words.
\documentclass[11pt,a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\begin{document}
\hyphenation{Ge-brauchs-an-lei-tung}
Some text. bestimmte richtige Gebrauchsanleitung weiche bestimmte richtige Gebrauchsanleitung weiche bestimmte richtige Gebrauchsanleitung soso weiche bestimmte richtige Gebrauchsanleitung weiche bestimmte richtige enthält Gebrauchsanleitung weiche bestimmte richtige Gebrauchsanleitung weiche bestimmte richtige Gebrauchsanleitung weiche bestimmte richtige Gebrauchsanleitung weiche bestimmte richtige Gebrauchsanleitung enthält weiche bestimmte richtige Gebrauchsanleitung weiche bestimmte richtige Gebrauchsanleitung weiche bestimmte richtige Gebrauchsanleitung weiche bestimmte richtige Gebrauchsanleitung weiche bestimmte richtige Gebrauchsanleitung weiche bestimmte enthält richtige Gebrauchsanleitung weiche bestimmte richtige Gebrauchsanleitung weiche bestimmte richtige Gebrauchsanleitung weiche bestimmte richtige Gebrauchsanleitung weiche enthält enthält bestimmte richtige Gebrauchsanleitung weiche bestimmte richtige Gebrauchsanleitung weiche
\end{document}
This is what the PDF looks like:
However, we-iche should be wei-che, en-thält should be ent-hält, bes-timmte should be be-stimmte. I know that babel can deal with such simple words because it works just fine on a different computer.
I usually use LyX. However, I created this example in Texmaker - to rule out that LyX settings are the problem - and it still does not work.
What could be the problem? It seems like babel simply ignores the ngerman
option and just uses English hyphenation patterns. What am I doing wrong here?
I am desperate and groping in the dark as I don't get any error messages that could point to my mistake.
The TeX installation on Ubuntu must differ from the one on my old OS X machine, I guess. But how can I fix this?
babel
with theshowlanguages
option, ie,\usepackage[ngerman,showlanguages]{babel}
. This will write to the log file a list of the languages in the format. Search also that file for otherbabel
related messages. This could provide hints of what's happening.