# ! LaTeX Error: Too many math alphabets used in version normal [duplicate]

I have a problem to compile the following code:

\documentclass[10pt,letterpaper,extrafontsizes]{memoir}
\usepackage{amsthm}
\usepackage{wrapfig}

\input{../Master/commands.tex}
%======================================================
\begin{document}


I get the following error:

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

See the LaTeX manual or LaTeX Companion for explanation.


I tried to make use of package

 \usepackage{bm}


as suggested by several people to fix the issue but this even provides me with more errors.

I also know that some nice packages like

\usepackage{mathtools}


can be helpful to avoid such errors but its too late for me to restructure my long file to use this package.

How can I resolve this issue?

Thanks.

## marked as duplicate by Torbjørn T., CarLaTeX, Troy, Stefan Pinnow, ZarkoJun 25 '17 at 15:35

• Which math fonts are loaded in the files header.tex and command.tex? – Mico Oct 31 '16 at 17:39