2

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}
\renewcommand{\rmdefault}{Myriad-LF}

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

enter image description here

2

With FontPro and the MyriadPro package, it works.

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

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

MyriadPro example

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
1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.