[Tex/LaTex] How to insert a triangle/rectangle with plus sign in it (abstract algebra operators)

math-operatorssymbols

To insert the abstract algebra operators, I tried:

\documentclass{article}
\usepackage{stackengine}
\usepackage{scalerel}
\newlength\triwidth
\newcommand\tridelt[1]{%
  \setlength\triwidth{\widthof{#1\ }}%
  \stackengine{-.1\triwidth}{#1\ }%
    {\scaleto{\Delta}{1\triwidth}}{O}{c}{F}{F}{L}%
}
\begin{document}

\begin{equation}
   C = A \tridelt{+} B, C = A \tridelt{x} B
\end{equation}

\end{document}

as in

Triangle with text in it

but the result looks ugly, how to fix it?

example

Best Answer

The symbols can be found in the in the Comprehensive LaTeX symbols list.

enter image description here

\usepackage{stix}

\begin{equation}
  \triangleplus \triangleminus \triangletimes 
\end{equation}

As shown above, this package provides lots of symbols that can be used in abstract algebra (\boxplus \boxminus \boxtimes).