I recently hit up against TeX's "too many math alphabets" error. I'm trying to diagnose what is using up my math alphabets, as I can't work out where they are going. Of course, I could just start commenting out sections, but given that this document is 100 pages long, that could take a long time.
I'd like to know what packages might be loading math alphabets, and what things count as being from different math alphabets.
My document compiles if I replace
\DeclareFontFamily{OT1}{pzc}{}
\DeclareFontShape{OT1}{pzc}{m}{it}%
{<-> s * [1.2] pzcmi7t}{}
\DeclareMathAlphabet{\mathpzc}{OT1}{pzc}%
{m}{it}
with
\let\mathpzc\mathcal
but the following compiles without complaint:
\documentclass{article}
\usepackage{kpfonts}
\usepackage{amsmath}
\usepackage[matha]{mathabx}
\DeclareFontFamily{OT1}{pzc}{}
\DeclareFontShape{OT1}{pzc}{m}{it}%
{<-> s * [1.2] pzcmi7t}{}
\DeclareMathAlphabet{\mathpzc}{OT1}{pzc}%
{m}{it}
\begin{document}
$X \mathbf{X}\mathbb{X}\vDash\mathpzc{X}\alpha\displaystyle\sum \subset \top\mathcal{X}$
\end{document}
This document includes (as far as I can tell) all the kinds of math alphabets I took myself to be using. So I am missing something. Something else is using extra math alphabets and I'm not sure how to work out what. What other things count as being different alphabets? What else loads math alphabets?
Here's something weird. I do this with a version of my main file and I get this:
(0:~jkpmn7t at 12.0pt)
(1:~jkpmi at 12.0pt)
(2:~jkpsy at 12.0pt)
(3:~jkpex at 12.0pt)
(4:~jkpmia at 12.0pt)
(5:~msam10 at 12.0pt)
(6:~msbm10 at 12.0pt)
(7:~jkpsyc at 12.0pt)
(8:~jkpexa at 12.0pt)
(9:~lasy10 at 12.0pt)
(10:~cmex10 at 12.0pt)
(11:~jkpssmn7t at 12.0pt)
(12:~jkpttmn7t at 12.0pt)
(13:~jkpbn7t at 12.0pt)
(14:~jkpsyd at 12.0pt)
(15:~jkpmn7t at 12.0pt)
Note that 0
and 15
appear to be the same font…
\let\mathcal\mathpzc
doesn't seem to work…kpfonts
package, theamsmath
package is loaded by default -- a setting that can be overridden by loading the package with thenoamsmath
option set. In order not to load any of kpfonts' own math alphabets, you should specify the optionnomath
.amsmath
and I do want to usekpfonts
math fonts. I'm just trying to work out why there are so many of them!