# MyriadPro: Double dash not replaced by en dash

I've installed the Minion/Myriad Pro fonts. While Minion works fine in this regard, Myriad shows unexpected behaviour: Compiling with pdflatex, two dashes -- are not replaced by an en dash –.

How would I fix this?

\documentclass{article}
\usepackage{MinionPro}

\begin{document}
test -- test
\end{document}


With FontPro and the MyriadPro package, it works.

\documentclass{article}
\usepackage{MinionPro}
\renewcommand{\familydefault}{\sfdefault}

\begin{document}
test -- test
\end{document}


You don't need the MinionPro package for that, of course.

• Thanks, that works. In my installation the package is Myridad (no Pro), could you double-check that? – dgs Sep 14 '13 at 8:39
• @dgs What is the source of your package? I'm sure mine is called MyriadPro and I cannot imagine how it would be renamed automatically. – sebschub Sep 14 '13 at 9:32
• I followed an installation guide on latex-community.org which references the Korean TUG's MyriadPro package. The package name includes -Pro, the .sty however does not. – dgs Sep 14 '13 at 12:23

A simple workaround is to replace -- by \textendash\.