0

Normally I often use the sign -- to display a long minus sign in my text. However, after using the fontspec package and setting my main font to "HelveticaNeue" the long minus sign isn't displayed anymore, but the two minus signs theirselves. Is there any possibility to change that behavior? Thanks for any hint.

\documentclass[11pt,titlepage,a4paper]{article}
\usepackage{fontspec}
\setsansfont[Scale=0.9]{HelveticaNeue}
\renewcommand\familydefault{\sfdefault}
\begin{document}
This is some text -- this is some other text. %not showing endash
\end{document}
  • 1
    @OliverBorchert -- \endash probably shouldn't work in math, but if it doesn't work in text, then there's a bug. – barbara beeton Feb 6 '15 at 21:14
  • 1
    You probably have an older version of fontspec. The most recent one enables Ligatures=TeX by default. – egreg Feb 6 '15 at 21:20
  • 3
    @OliverBorchert try putting \defaultfontfeatures{Ligatures={TeX}} right after \usepackage{fontspec}. – erik Feb 6 '15 at 21:23
  • 1
    @erik Great, this works! Thank you all for your fast and very helpful replies! :) – Oliver Borchert Feb 6 '15 at 21:24
  • 1
    @egreg Thank you so much, just updated and working perfectly now ;) – Oliver Borchert Feb 6 '15 at 21:27

Browse other questions tagged or ask your own question.