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 want to disable ligatures when I am typing letters, however, I need '--' to be joined to a long dash. Is it possible to make this?

Now I am avoiding it like this

\DisableLigatures{encoding = *, family = * }
share|improve this question
Use \textendash for the en-dash. – egreg May 29 '12 at 8:52
Why is it better than just type double dash? – Pavasaris May 29 '12 at 9:48
If you disable all ligatures, that command will use the en dash anyway. – egreg May 29 '12 at 9:50
up vote 14 down vote accepted

You can only do it the other way round as described in the documentation of microtype. You can give a list of chars for which ligatures should be disabled:

\DisableLigatures[f]{encoding = *, family = * }
fi ---

share|improve this answer

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.