Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm using MiKTeX and pdfLaTeX and the package manager tells me that hyph-utf8 is installed and auto-download of packages is activated, too.

But when I do \usepackage{hyph-utf8}, because I hope that it will correct some currently wrong german hyphenations in my documents, I only get a warning about a missing hyph-utf8.sty file.

Did I understand the purpose of hyph-utf8 correct ("provide more hyphenation patterns for words in many languages") and do I try to use it correctly (\usepackage{hyph-utf8})?

share|improve this question

1 Answer 1

up vote 9 down vote accepted

hyph-utf8 is simply a collection of pattern files, not a package you load. If you want the experimental german patterns you need the dehyph-exptl package. Its documentation shows you how to use it. You will perhaps have to activate the patterns in miktex-settings in the language tab. Then this document

\RequirePackage[ngerman=ngerman-x-latest]{hyphsubst}
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}

\begin{document}
\showhyphens{löste Fassade modernste Abendstern Mordopfer}
\end{document}

should give in the log-file

[] \T1/cmr/m/n/10 lös-te Fas-sa-de mo-derns-te Abend-stern Mord-op-fer
share|improve this answer
    
Thanks. This means using babel automatically loads the hyph-utf8 patterns as long as I don't change it by loading a package with alternative patterns? –  Foo Bar Mar 26 '13 at 14:16
    
babel will use the patterns set up in languages.ini/in the language tab of miktex settings. For most languages these are nowadays the patterns from hyph-utf8. –  Ulrike Fischer Mar 26 '13 at 14:26
    
Hmm, everything works fine here with a different loading order (as always in comments no linebreaks): \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{hyphsubst} \HyphSubstIfExists{ngerman-x-latest}{\HyphSubstLet{ngerman}{ngerman-x-latest}}{} \usepackage[ngerman]{babel}. –  Speravir Mar 26 '13 at 17:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.