3

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?

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}

enter image description here

  • Thanks, but it still brings the error "too many alphabets". Original document does compile with no problems. – Ilya Jul 21 '14 at 12:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.