FontPro icon indicating copy to clipboard operation
FontPro copied to clipboard

"Too many math alphabets" error when using both MinionPro and MyriadPro

Open felix-rose opened this issue 9 years ago • 2 comments

Hello, When I use MinionPro (text and math) as well as MyriadPro (sans font and math font), I am unable to use all math fonts. Here is a mwe:

\documentclass{article}

\usepackage{MinionPro}
\usepackage[sansmath]{MyriadPro}

\begin{document}
$\mathrm{A}$

$\mathsf{A}$

$\mathfrak{A}$

$\mathbf{A}$

$\mathcal{A}$

$\mathbb{A}$
\end{document}

does not compile and return the following error:

! LaTeX Error: Too many math alphabets used in version normal.

If I comment anyone of the `a's (and therefore use one less alphabet), the error disappers. The error somehow comes from the combination of both packages; indeed, if I comment either, the error goes away. Loading them in reverse order does not solve the issue.

felix-rose avatar Mar 04 '16 21:03 felix-rose

Well, I suppose there are just too many math alphabets active because the sansmath option basically doubles the math versions. To be honest, I am not exactly sure how this is connected to the normal math version, however, I did not find any issues in the code...

sebschub avatar Mar 16 '16 13:03 sebschub

Is there a way to have MyriadPro not load already defined alphabets such as mathfrak or mathbb ? This might solve the issue.

felix-rose avatar Mar 17 '16 07:03 felix-rose