3

I would like to use the symbols \smalltriangleup, \smalltriangledown and \blacktriangleup from mathabx. The problem is that if I use the mathabx package, some of the other symbols change (like \infty and \emptyset). How could I use those three specific symbols without affecting the rest of the symbols?

1

1 Answer 1

4

Copy the relevant lines of the style file to your preamble.

\documentclass{article}
\DeclareFontFamily{U}{mathb}{\hyphenchar\font45}
\DeclareFontShape{U}{mathb}{m}{n}{
      <5> <6> <7> <8> <9> <10> gen * mathb
      <10.95> mathb10 <12> <14.4> <17.28> <20.74> <24.88> mathb12
      }{}
\DeclareSymbolFont{mathb}{U}{mathb}{m}{n}
\DeclareFontSubstitution{U}{mathb}{m}{n}
\DeclareMathSymbol{\smalltriangleup}   {2}{mathb}{"98}
\DeclareMathSymbol{\smalltriangledown} {2}{mathb}{"99}
\DeclareMathSymbol{\blacktriangleup}   {2}{mathb}{"9C}
\begin{document}

$a\smalltriangleup b\smalltriangledown c \blacktriangleup d$
\end{document}

enter image description here

2
  • 1
    To get the mathb12 and "98 values, look up mathabx's documentation: they list the character's code in tables at the end.
    – Clément
    Aug 12, 2022 at 14:47
  • @Clément Useful advice for people passing by, thanks.
    – gernot
    Aug 12, 2022 at 18:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .