18

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 = * }
Pavasaris
  • 2,971

1 Answers1

22

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}
\usepackage[T1]{fontenc}
\usepackage{microtype}
\DisableLigatures[f]{encoding = *, family = * }
\begin{document}
fi ---

\end{document}
Ulrike Fischer
  • 327,261
  • 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