\makeatletter
\mathchardef\e@mathgroup@top=256
\def\cnttohex#1{%
{\count@=#1\@tempcnta=#1\@tempcntb=\@tempcnta\relax
\divide\@tempcntb by 16%
\ifnum\count@=0\else
  \multiply\@tempcntb by16%
  \advance\@tempcnta-\@tempcntb
  \divide\@tempcntb by16%
  \cnttohex{\the\@tempcntb}%
  \ifcase\@tempcnta\relax 0\or1\or2\or3\or4\or5\or6\or
    7\or8\or9\or A\or B\or C\or D\or E\or F\fi
\fi}}
\makeatother



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

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

\DeclareMathAlphabet{\mbfba}{OT1}{lmss}{m}{it} % 32
\DeclareMathAlphabet{\mbfbb}{OT1}{lmss}{m}{it}
\DeclareMathAlphabet{\mbfbc}{OT1}{lmss}{m}{it}
\DeclareMathAlphabet{\mbfbd}{OT1}{lmss}{m}{it}
\DeclareMathAlphabet{\mbfbe}{OT1}{lmss}{m}{it}
\DeclareMathAlphabet{\mbfbf}{OT1}{lmss}{m}{it}
\DeclareMathAlphabet{\mbfbg}{OT1}{lmss}{m}{it}
\DeclareMathAlphabet{\mbfbh}{OT1}{lmss}{m}{it}
\DeclareMathAlphabet{\mbfbi}{OT1}{lmss}{m}{it}
\DeclareMathAlphabet{\mbfbj}{OT1}{lmss}{m}{it}
\DeclareMathAlphabet{\mbfbk}{OT1}{lmss}{m}{it}
\DeclareMathAlphabet{\mbfbl}{OT1}{lmss}{m}{it}
\DeclareMathAlphabet{\mbfbm}{OT1}{lmss}{m}{it}
\DeclareMathAlphabet{\mbfbn}{OT1}{lmss}{m}{it}
\DeclareMathAlphabet{\mbfbo}{OT1}{lmss}{m}{it}
\DeclareMathAlphabet{\mbfbp}{OT1}{lmss}{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}{lmr}{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}

