1

This question already has an answer here:

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, Zarko May 5 '17 at 8:45

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • @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
  • 1
    @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
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 5 '17 at 5: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. – Andrew May 5 '17 at 5: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 5 '17 at 13:45

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