In the following minimal test document, I can have two hyphens appear as two hyphens (which is what I want):
\documentclass[letterpaper]{article}
\begin{document}
A hyphen: \texttt{-}
Two hyphens: \texttt{--}
Three hyphens: \texttt{---}
\end{document}
But in this second test document where I load the fontenc
package, I get different behavior; the single hyphen is displayed; the double hyphen is collapsed to a single hyphen, and the triple hyphen is collapsed to a double hyphen:
\documentclass[letterpaper]{article}
\usepackage[T1]{fontenc}
\begin{document}
A hyphen: \texttt{-}
Two hyphens: \texttt{--}
Three hyphens: \texttt{---}
\end{document}
I read that loading fontenc
is a Good Idea, so I want to do that; but I want my double hyphen too. Have I missed something terribly obvious?
System: MiKTeX 2.8 on Windows XP Pro.