I often face the following problem: I need just a single symbol from a package (currently \equalclosed from MnSymbol), however loading the whole package causes certain problems with already loaded ones (ams packages in my case). As far as I understood from answers to this question, there is no general solution for this problem. In my particular case, is there a ny short way to use \equalclosed or shall I study the structure of the MnSymbol package?
Asked
Active
Viewed 340 times
3
-
1Does Importing a Single Symbol From a Different Font help? – egreg Jul 17 '14 at 09:18
-
1This answer, http://tex.stackexchange.com/questions/132453/typing-following-notation-in-latex/132456#132456, also speaks directly to MnSymbol import. – Steven B. Segletes Jul 17 '14 at 10:20
1 Answers
2
Using the exact technique I employed at Typing Following notation in Latex. One only has to uncomment the two fonttable lines in my MWE to ascertain that \equalclosed was symbol 221 of MnSyC. At that point, changing the pointer, the glphy macro, and the mathbin to mathrel was all that was needed.
\documentclass{article}
\DeclareFontFamily{U} {MnSymbolC}{}
\DeclareFontShape{U}{MnSymbolC}{m}{n}{
<-6> MnSymbolC5
<6-7> MnSymbolC6
<7-8> MnSymbolC7
<8-9> MnSymbolC8
<9-10> MnSymbolC9
<10-12> MnSymbolC10
<12-> MnSymbolC12}{}
\DeclareFontShape{U}{MnSymbolC}{b}{n}{
<-6> MnSymbolC-Bold5
<6-7> MnSymbolC-Bold6
<7-8> MnSymbolC-Bold7
<8-9> MnSymbolC-Bold8
<9-10> MnSymbolC-Bold9
<10-12> MnSymbolC-Bold10
<12-> MnSymbolC-Bold12}{}
\DeclareSymbolFont{MnSyC} {U} {MnSymbolC}{m}{n}
%\Decl@Mn@Char\equalclosed {MnSyC}{\mathrel}
\DeclareMathSymbol{\equalclosed}{\mathrel}{MnSyC}{221}
%\usepackage{fonttable}
\begin{document}
%\fonttable{MnSymbolC10}
$a \equalclosed b$
\end{document}

Steven B. Segletes
- 237,551
-
Thanks, but it still brings the error "too many alphabets". Original document does compile with no problems. – SBF Jul 21 '14 at 12:52