3

I'm writing a document in German using LuaTeX on windows with a MiKTeX installation. I use some words with hyphens, e.g. Baden-Württemberg. Using the LuaTeX specific \hyphenation{Ba-den=Würt-tem-berg} worked find until I updated to miktex 2.9.6600 and LuaTex 1.07 lately.

Now, I cannot find a way to tell TeX the right hyphenation. With the old version, it would insert a hyphen at any specified position, if needed. With the new, only the - between Baden and Württemberg is used.

I made a MWE to show, that \hyphenation still works for normal words but not for those with dash:

\documentclass[ngerman,12pt,a4paper]{report}
\usepackage[ngerman]{babel} 
    \hyphenation{Ba-den=Würt-tem-berg Fluss-be-tt}
\usepackage{showhyphens}
\begin{document}
    \parbox{0pt}{Baden-Württemberg}
    \parbox{0pt}{Flussbett}
\end{document}

The result should begin a new line at every possibility given by \hyphenation. But this does only work for "Flussbett":

Resulting Document

So either the usage of \hyphenation in LuaTeX has changed or this is a bug of the current version.

Can you confirm this or correct my usage of \hyphenation? And if it is an unknown bug, can you tell me where I can report it?

  • 2
    Anyway, shouldn't it be \parbox{0pt}{Baden"-Württemberg}, where "- is the babel shortcut for "allow hyphenation in the words immediately before and after the hyphen"? – Mico Jan 30 '18 at 17:45
  • 1
    According to the docu it should work, and according to my tests it doesn't (not only in miktex, but also if a newer luatex is used with texlive, and also in context). So it is imho a bug. – Ulrike Fischer Jan 30 '18 at 21:43
  • 2
    @RobtAll no miktex is not based on texlive and is often (as here) ahead of texlive in publishing luatex updates – David Carlisle Jan 30 '18 at 21:53
  • 1
    @Mico no it is in tl2018 (I compiled from source) note even in 1.04 you do not need the babel "- convention, luatex can (could) hyphenate words with explicit hyphens – David Carlisle Jan 31 '18 at 7:41
  • 1
    @Mico regarding your earlier question: I did not change my Lua engine to 5.3 so it should be 5.2. However, to my understandig this (should) only affects Lua code and not LuaTeX itself. – Dobu Jan 31 '18 at 8:22

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.