# Ligatures disabling

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

\usepackage{microtype}
\DisableLigatures{encoding = *, family = * }

• 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

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:
\documentclass{article}

• For me, the above did not work for disabling ligatures in source code listings with a tt font. However, \DisableLigatures[f]{encoding = *, family = tt* } did work (as suggested in the microtype manual). – Supernormal Nov 13 '17 at 13:53