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 = * }
4

1 Answer 1

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}
1
  • 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). Nov 13, 2017 at 13:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .