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
    \textendash maybe? – azetina Aug 24 '12 at 17:34

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

| improve this answer | |
  • Note that, as of version 2.4 of fontspec, the option is set by default. – egreg Feb 6 '15 at 21:22

Your Answer

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

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