3

I'm using XeLaTeX to compile my document. If I write in my document --- I don't get , but --- in my PDF document. Same for (--) character. I'm sure that font which I'm using have this character (Myriad Pro). Are there other ways to get this characters working?If copy&paste this character, it works then. But never when using -- or --- shortcuts.

1
  • 1
    \textendash maybe?
    – azetina
    Aug 24, 2012 at 17:34

1 Answer 1

8

You must use the option Ligatures=TeX when declaring the font. See the documentation of fontspec.

1
  • Note that, as of version 2.4 of fontspec, the option is set by default.
    – egreg
    Feb 6, 2015 at 21:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .