Ligatures are generally considered a good thing, but if you really want to disable them and are using pdfLaTeX (or LuaLaTeX†), the microtype
package can do this for you.
If you load this package and add \DisableLigatures{encoding = *, family = * }
to your preamble, all ligatures will disappear from your output.
Here's an example (pdfLaTeX only):
\documentclass{article}
\usepackage{microtype}
\DisableLigatures{encoding = *, family = *}
% \DisableLigatures[f]{encoding = *, family = *} %% <- only disables f-ligatures
\begin{document}
Different -- without ligatures!
\end{document}
Note that the double hyphen (--
), which is normally typeset as a single en dash, is also treated as a ligature by TeX and that this is suppressed as well. The standard set of ligatures that TeX recognises consists of:
Actual ligatures: ff → ff fi → fi fl → fl ffi → ffi ffl → ffl
"Fake" ligatures: -- → – --- → — `` → “ ’’ → ” !` → ¡ ?` → ¿
You can use \DisableLigatures[f]{encoding = *, family = * }
to only disable ligatures that start with the letter f
(i.e., the entire top row).
The microtype
package actually does a lot more than this. It implements a number of micro-typographical features that generally improve the layout of your paragraphs. (See the documentation for more information.)
†To make this work with LuaLaTeX you need to also use the fontspec
package and supply the Renderer=Basic
option while loading your font. For LuaLaTeX, Mico's answer is therefore preferable.
Di{f}{f}erent