\makeatletter
\def\document@select@group#1#2#3#4{%
 \ifx\math@bgroup\bgroup\else\relax\expandafter\@firstofone\fi
 {%
 \ifmmode
%   \ifnum\csname c@mv@\math@version\endcsname<\sixt@@n% 16個ではなく
   \ifnum\csname c@mv@\math@version\endcsname<256%       256個にする
     \begingroup
       \escapechar\m@ne
       \getanddefine@fonts{\csname c@mv@\math@version\endcsname}#3%
       \globaldefs\@ne  \math@fonts
     \endgroup
     \expandafter\extract@alph@from@version
         \csname mv@\math@version\expandafter\endcsname
         \expandafter{\number\csname
                       c@mv@\math@version\endcsname}%
          #1%
     \global\advance\csname c@mv@\math@version\endcsname\@ne
   \else
     \let#1\relax
     \@latex@error{Too many math alphabets used
                   in version \math@version}%
        \@eha
  \fi
 \else \expandafter\non@alpherr\fi
 #1{#4}%
 }%
}
\makeatother



\DeclareMathAlphabet{\mbfa}{OT1}{cmr}{m}{n}
\DeclareMathAlphabet{\mbfb}{OT1}{cmr}{bx}{n}
\DeclareMathAlphabet{\mbfc}{OT1}{cmr}{bx}{n}
\DeclareMathAlphabet{\mbfd}{OT1}{cmr}{bx}{n}
\DeclareMathAlphabet{\mbfe}{OT1}{cmr}{bx}{n}
\DeclareMathAlphabet{\mbff}{OT1}{cmr}{bx}{n}
\DeclareMathAlphabet{\mbfg}{OT1}{cmr}{bx}{n}
\DeclareMathAlphabet{\mbfh}{OT1}{cmr}{bx}{n}
\DeclareMathAlphabet{\mbfi}{OT1}{cmr}{bx}{n}
\DeclareMathAlphabet{\mbfj}{OT1}{cmr}{bx}{n}
\DeclareMathAlphabet{\mbfk}{OT1}{cmr}{bx}{n}
\DeclareMathAlphabet{\mbfl}{OT1}{cmr}{bx}{n}% ここで15番

\DeclareMathAlphabet{\mbfaa}{OT1}{cmtt}{m}{n} % 16
\DeclareMathAlphabet{\mbfab}{OT1}{cmtt}{m}{n}
\DeclareMathAlphabet{\mbfac}{OT1}{cmtt}{m}{n}
\DeclareMathAlphabet{\mbfad}{OT1}{cmtt}{m}{n}
\DeclareMathAlphabet{\mbfae}{OT1}{cmtt}{m}{n}
\DeclareMathAlphabet{\mbfaf}{OT1}{cmtt}{m}{n}
\DeclareMathAlphabet{\mbfag}{OT1}{cmtt}{m}{n}
\DeclareMathAlphabet{\mbfah}{OT1}{cmtt}{m}{n}
\DeclareMathAlphabet{\mbfai}{OT1}{cmtt}{m}{n}
\DeclareMathAlphabet{\mbfaj}{OT1}{cmtt}{m}{n}
\DeclareMathAlphabet{\mbfak}{OT1}{cmtt}{m}{n}
\DeclareMathAlphabet{\mbfal}{OT1}{cmtt}{m}{n}
\DeclareMathAlphabet{\mbfam}{OT1}{cmtt}{m}{n}
\DeclareMathAlphabet{\mbfan}{OT1}{cmtt}{m}{n}
\DeclareMathAlphabet{\mbfao}{OT1}{cmtt}{m}{n}
\DeclareMathAlphabet{\mbfap}{OT1}{cmtt}{m}{n}

\DeclareMathAlphabet{\mbfba}{OT1}{cmss}{m}{it} % 32
\DeclareMathAlphabet{\mbfbb}{OT1}{cmss}{m}{it}
\DeclareMathAlphabet{\mbfbc}{OT1}{cmss}{m}{it}
\DeclareMathAlphabet{\mbfbd}{OT1}{cmss}{m}{it}
\DeclareMathAlphabet{\mbfbe}{OT1}{cmss}{m}{it}
\DeclareMathAlphabet{\mbfbf}{OT1}{cmss}{m}{it}
\DeclareMathAlphabet{\mbfbg}{OT1}{cmss}{m}{it}
\DeclareMathAlphabet{\mbfbh}{OT1}{cmss}{m}{it}
\DeclareMathAlphabet{\mbfbi}{OT1}{cmss}{m}{it}
\DeclareMathAlphabet{\mbfbj}{OT1}{cmss}{m}{it}
\DeclareMathAlphabet{\mbfbk}{OT1}{cmss}{m}{it}
\DeclareMathAlphabet{\mbfbl}{OT1}{cmss}{m}{it}
\DeclareMathAlphabet{\mbfbm}{OT1}{cmss}{m}{it}
\DeclareMathAlphabet{\mbfbn}{OT1}{cmss}{m}{it}
\DeclareMathAlphabet{\mbfbo}{OT1}{cmss}{m}{it}
\DeclareMathAlphabet{\mbfbp}{OT1}{cmss}{m}{it}

\DeclareMathAlphabet{\mbfca}{OT1}{ptm}{m}{n} % 48 
\DeclareMathAlphabet{\mbfcb}{OT1}{ptm}{m}{n}
\DeclareMathAlphabet{\mbfcc}{OT1}{ptm}{m}{n}
\DeclareMathAlphabet{\mbfcd}{OT1}{ptm}{m}{n}
\DeclareMathAlphabet{\mbfce}{OT1}{ptm}{m}{n}
\DeclareMathAlphabet{\mbfcf}{OT1}{ptm}{m}{n}
\DeclareMathAlphabet{\mbfcg}{OT1}{ptm}{m}{n}
\DeclareMathAlphabet{\mbfch}{OT1}{ptm}{m}{n}
\DeclareMathAlphabet{\mbfci}{OT1}{ptm}{m}{n}
\DeclareMathAlphabet{\mbfcj}{OT1}{ptm}{m}{n}
\DeclareMathAlphabet{\mbfck}{OT1}{ptm}{m}{n}
\DeclareMathAlphabet{\mbfcl}{OT1}{ptm}{m}{n}
\DeclareMathAlphabet{\mbfcm}{OT1}{ptm}{m}{n}
\DeclareMathAlphabet{\mbfcn}{OT1}{ptm}{m}{n}
\DeclareMathAlphabet{\mbfco}{OT1}{ptm}{m}{n}
\DeclareMathAlphabet{\mbfcp}{OT1}{cmr}{bx}{n}

\DeclareMathAlphabet{\mbfda}{OT1}{phv}{m}{n} % 64
\DeclareMathAlphabet{\mbfdb}{OT1}{pcr}{m}{n}
\DeclareMathAlphabet{\mbfdc}{OT1}{pag}{m}{n}
\DeclareMathAlphabet{\mbfdd}{OT1}{ppl}{m}{n}

