Let's consider the two files below (they come from one of my very modest LaTeX projects).
The use of latex -shell-escape tnsmath-doc\[fr\].tex with these two files gives me the following error.
! LaTeX Error: Too many math alphabets used in version normal.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.1 $\setalge{A}
$ ,
I know that I have to use things like in the code above to avoid that kind of error (the lines of the example are inside tnsmath.sty).
\DeclareFontFamily{U}{mathb}{}
\DeclareFontShape{U}{mathb}{m}{n}{
<-5.5> mathb5
<5.5-6.5> mathb6
<6.5-7.5> mathb7
<7.5-8.5> mathb8
<8.5-9.5> mathb9
<9.5-11> mathb10
<11-> mathb12
}{}
\DeclareSymbolFont{mathb}{U}{mathb}{m}{n}
\DeclareFontSubstitution{U}{mathb}{m}{n}
\DeclareMathSymbol{\tnslog@leftleftharpoons} {3}{mathb}{"D8}
\DeclareMathSymbol{\tnslog@rightrightharpoons}{3}{mathb}{"D9}
I would like to do the same thing everywhere that is needed but I have to make first a M(not)WE from my huge TEX file such as to test the usefulness of my changes.
Can someone help me?
\DeclareMathSymbol, is it considered as a whole font loading? If it is, is there a way to avoid that? – projetmbc Mar 03 '21 at 15:45\usefontto see if it is acceptable for me. – projetmbc Mar 03 '21 at 15:51\PrintMathFontsis very useful. – projetmbc Mar 03 '21 at 16:15unicode-mathdoes not have this problem. – Davislor Mar 03 '21 at 17:11\DeclareMathSymbolitself doesn't use a family but\DeclareSymbolFontuses one. You really have not shown enough code to allow anyone to help but do you really need more than 16 font families in a single math exprerssion? or as Davislor says you can use luatex or xetex which allow 256 rather than 16. – David Carlisle Mar 03 '21 at 18:52--shell-escapewhich is presumably only used for minted which will be unrelated to math fonts. You should be able to make a far simpler example – David Carlisle Mar 03 '21 at 19:03