1

I am having trouble using the babel (2016/04/23 3.9r) package. For some reason, soft babelhyphen or the "- shorthand only add a breaking opportunity but no hyphen is displayed in case a word is broken. This is undesired and results in the following output. Am I doing something wrong, is this a decision by design or just a bug in the update-to-date babel/MiKTeX?

Update

After reducing the parbox space, I receive the following output. The "-shorthand is working but babelhyphen not.

enter image description here

\documentclass{article}

\usepackage[ngerman]{babel}

\begin{document}

    \bigskip
    \parbox{1em}{$n$\babelhyphen{soft}dimensional}

    \bigskip
    \parbox{1em}{$n$"-dimensional}

    \bigskip
    \parbox{1em}{$n$\-dimensional}

    \bigskip
    \parbox{1em}{$n$\babelhyphen{nobreak}dimensional}

\end{document}

First Version

Output

MWE

\documentclass{article}

\usepackage[ngerman]{babel}

\begin{document}

    \bigskip
    \parbox{3em}{n\babelhyphen{soft}dimensional}

    \bigskip
    \parbox{3em}{n"-dimensional}

    \bigskip
    \parbox{3em}{n\-dimensional}

    \bigskip
    \parbox{3em}{n\babelhyphen{nobreak}dimensional}

\end{document}
  • 1
    It should be $n$-dimensional anyhow. – egreg Apr 24 '17 at 16:16
  • 3em may be too wide to see much going on. Replace 3em with, say, 1mm, to see some more action. – Mico Apr 24 '17 at 16:17
  • You are absolutely right, I removed it to make the example as minimal as possible. – maetra Apr 24 '17 at 16:17
  • Your image doesn't show a break at "- or babelhyphen. – Ulrike Fischer Apr 24 '17 at 16:17
  • 1
    Imho it is a bug. There is a \nobreak missing before \hskip\z@skip in the definition of \bbl@usehyphen. Write the author of babel. – Ulrike Fischer Apr 24 '17 at 22:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.