The following is a near-minimal example of my problem:
\documentclass[dvipsnames]{beamer}
\usepackage{stmaryrd}
\usepackage{MnSymbol}
\DeclareSymbolFont{bbsymbol}{U}{bbold}{m}{n}
\DeclareMathSymbol{\bbsemi}{\mathbin}{bbsymbol}{"3B}
% Import some stuff from mathabx.sty -- because mathabx.sty incompatible with
% amsmath package.
\DeclareFontFamily{U}{matha}{\hyphenchar\font45}
\DeclareFontShape{U}{matha}{m}{n}{
<5> <6> <7> <8> <9> <10> gen * matha
<10.95> matha10 <12> <14.4> <17.28> <20.74> <24.88> matha12
}{}
\DeclareSymbolFont{matha}{U}{matha}{m}{n}
\begin{document}
\begin{frame}
$\mathbf{0} \mathsf{hello}$
\end{frame}
\end{document}
I would like to be able to use stmaryrd and MnSymbol in the same doc. I would also like some stuff from mathabx, but because of incompatibility with amsmath (which is imported automatically by MnSymbol), I use DeclareSymbolFont to import it, as described in 1. Moreover I would also like to define a blackboard semicolon operator, and so I also use DeclareSymbolFont to introduce bbsymbol. Finally I want mathbf and mathsf.
Unfortunately this seems to run out of space for math alphabets in Beamer, but not (for example) if I build a regular article.
Is there a solution that meets all my requirements, for Beamer? (It seems that deleting any one of the imported or defined fonts fixes the problem, but then I don't have all my requirements satisfied.)
MnSymbolis rather hungry in this respect. – egreg Jul 28 '13 at 17:58(As an aside, I guess this is a case where a "minimal example" may not be that useful, since the best solution to this problem seems to depend on exactly how you are using the packages in question.)
– Roly Jul 28 '13 at 18:06texdef -tlatex -pMnSymbol lhookswarrow. The output contains\lhookswarrow: \mathchar"3436and that tells me that the symbol is at position "36 in math alphabet "34, but you can look at theMnSymbol.styfile to see that the alphabet isMnSyA. – dubiousjim Aug 09 '14 at 12:41