[texhax] -- typeset like -\/-

Morten Høgholm morten.hoegholm at gmail.com
Mon Jan 15 15:52:29 CET 2007


On Thu, 11 Jan 2007 17:39:47 +0100, Tom Zorn wrote:

Hi Tom,

> does anybody has an idea how to make -- typeset in typewriter
> (\texttt{}) like -\/- (two dashes, without changing textinputs)?

pdfTeX comes with a primitive \pdfnoligatures, which allows you to turn  
off ligatures. The microtype package provides an easy interface for it:

\documentclass{article}
\usepackage{microtype}
\usepackage[T1]{fontenc}
\DisableLigatures{encoding=T1,family=tt*}
\begin{document}
Testing \texttt{--}.
\end{document}

Cheers,
-- 
Morten


More information about the texhax mailing list