Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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 = * }
share|improve this question
5  
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

1 Answer 1

up vote 9 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:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{microtype}
\DisableLigatures[f]{encoding = *, family = * }
\begin{document}
fi ---

\end{document}
share|improve this answer

Your Answer

 
discard

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.