# How to get a single operator from the stmaryrd package? [duplicate]

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?

## marked as duplicate by TeXnician, Mico, Jesse, Stefan Pinnow, ZarkoMay 5 '17 at 8:45

• @Andrew, I have seen that post, but am unable to modify it to my needs, because it is rather general, and I am not very familiar with the internal workings of LaTeX. – sami.spricht.sprache May 5 '17 at 5:01
• @sami.spricht.sprache So please show us a minimal but working example (MWE) that illustrates what you have tried. – Schweinebacke May 5 '17 at 6:23
• Thanks everyone, I've managed a workaround, by using the stmaryrd package and importing the specific mathabx symbols I need, which seems to work fine, using the method in @Andrew's answer below. Basically, the opposite of what I was trying initially. – sami.spricht.sprache May 5 '17 at 13:50

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

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 5 '17 at 5:25
• 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 5 '17 at 13:45