Hello everyone!
I have a problem writing my master's thesis and I hope someone can help. I am using TeXnicCenter 2.02 in combination with MiKTeX 2.9.4248. The Header of my document looks like this:
\documentclass[12pt,a4paper]{report} \usepackage{amsmath} \usepackage{amsthm} \usepackage{fancyhdr} \usepackage{titlesec} \usepackage[utf8]{inputenc} \usepackage{hyphsubst} \usepackage[ngerman]{babel} \begin{document} Text of my document... \end{document} Unfortunately the hyphenation is incorrect. For example the German word "Optimierungsproblem" at the end of one line is separated to "Optimierungsprob- lem" instead of the correct way "Optimierungspro- blem"
and there is one Warning with the message:
"pdflatex > Package babel Warning: No hyphenation patterns were preloaded for the language ngerman into the Format. Please, configure your TeX System to add them and rebuild the Format. Now I will use the Patterns preloaded for \language=0 instead of Input line 42"
The Input lines 41, 42 and 43 (of the ngerman.ldf file) look like this:
41 \ifx\l@ngerman\@undefined 42 \@nopatterns{ngerman} 43 \adddialect\l@ngerman0 The german hyphenation package is installed in MiKTeX. I've tried to find an answer in other questions and someone suggested to add the line "ngerman loadhyph-de-1996.tex" to the language.dat file. So I checked the language.dat file but the following lines are all included:
54 ngerman loadhyph-de-1996.tex 55 ngerman-x-2014-05-21 dehyphn-x-2014-05-21.tex 56 =ngerman-x-latest Can anyone help me regarding this problem? If I need to add a log file or other information, please let me know.
Best regards, Dom
\usepackage[T1]{fontenc}in your preamble as well.