TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
\textendash maybe? – azetina Aug 24 '12 at 17:34
up vote 8 down vote accepted

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

share|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 posting your answer, you agree to the privacy policy and terms of service.

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