I try to load and use a calligraphic font but it seems that the combination of siunitx, upgreek and bm causes the error, but for some reasons the error-message ('Too many math alphabets used in version normal. $\mathcal{F}') doesn't appear when I exclude on of the packages. How can I solve the problem? (I already played with the order of the packages but with no result, thx)



 %{XCharter} - Font
 \usepackage[scaled=.98,sups,lf]{XCharter} % osf for text, not math 
 \usepackage{cabin} % sans serif
 \usepackage[varqu,varl]{zi4} % sans serif typewriter
 \usepackage[libertine,bigdelims,vvarbb,scaled=1.03]{newtxmath} % bb from STIX
 \usepackage[cal=boondoxo]{mathalfa} % mathcal


  • 1
    newtxmath with all those options is very hungry of math families. Do you need those calligraphic letters also in the argument of \bm? What's upgreek for?
    – egreg
    Oct 11, 2014 at 22:12
  • Which fonts are you actually trying to use? Right now you are loading several font packages and many of them are overriding the settings of the previous ones (for text), and overriding/adding to specifications of font families (for maths). You can have no more than 16 alphabets for maths, I think, and you are presumably exceeding that. But, more generally, you are creating a recipe for confusion and nasty surprises. tldr: you need to sort out your fonts ;).
    – cfr
    Oct 11, 2014 at 22:21
  • \usepackage{cabin} currently has no effect. It is overridden by tgheros. This isn't the problem (which is as egreg explained) but it is confusing. Also, the call to XCharter will give you lining figures - not oldstyle.
    – cfr
    Oct 11, 2014 at 22:33
  • I trying to use Xcharter as text-font and the math-font as recommended by the XCharter manual. (Personally, I don't like the old style lining figures that's the reason I use the standard option (lf)). Either way, bm is used to indicate matrices and upgreek provides non-italic greek letters for the text mode.
    – jlk
    Oct 11, 2014 at 22:38
  • 1
    I don't understand your comment about upgreek being for text mode, it is a purely math font package (and eating into the upper limit of 16 math fonts) Oct 11, 2014 at 22:55

1 Answer 1


You are loading far too many fonts given that TeX only allows 16 math fonts, but anyway your example runs without error if you give bm a hint that that is what you are doing


Tells bm to be more conservative in its font usage.

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.