1

I am preparing a math document, and would like to use the \bigtriangleup math operator from the package stmaryrd. However, calling the entire package is not an option as it overwrites several commands from mathabx which I am also using. Is there a way I can extract this operator (possibly using a different name, so that mathabx's \bigtriangleup binary operator isn't affected) without having to use the package?

1 Answers1

3

As the OP thinks that this is not a duplicate, following the general recipe in Importing a Single Symbol From a Different Font (and, in fact shortening it quite a bit in this example), the code below seem to work because it produces

enter image description here

Here's the code:

\documentclass{article}
\DeclareSymbolFont{stmry}{U}{stmry}{m}{n}
\DeclareMathSymbol\stmarybigtriangleup\mathop{stmry}{"61}

\usepackage{mathabx}

\begin{document}

  St Mary: $\stmarybigtriangleup$

  Mathxba: $\bigtriangleup$

\end{document}

Given the post referred to above, the only thing that is not obvious is the definition of \stmarybigtriangleup, which can be found by looking in stmaryrd.sty. Of course, rather than \stmarybigtriangleup, you could call this anything you like.

  • Thanks for the reply. This is similar to what I tried first, but unfortunately, the method has a few problems of its own. For example, it completely messes up the \colon symbol that I use, replacing it with a negation sign, changes \acute to \supseteq etc. So, it doesn't interfere with mathabx (\bigtriangleup is safe), but has other issues. – sami.spricht.sprache May 05 '17 at 05:25
  • 3
    @sami.spricht.sprache Please provide a minimal working example saying exactly what your issues are - I answered your question but could not guess your other constraints. This said, problems with other fonts/symbols should not occur so it is probably something else that is causing your problems. Without more information about what you are doing it is really hard to help you, which is why a MWE is useful. Also, when you ask questions it is better to let people know what you have tried, and why it didn't work, as this saves time for everyone. –  May 05 '17 at 05:43
  • the reason I didn't post a minimal example is because my document is huge (not minimal). But I've managed a workaround, by using the stmaryrd package and importing the specific mathabx symbols I need, which seems to work fine. Thanks again for your help. – sami.spricht.sprache May 05 '17 at 13:45