\newcommand{\mtriangle}[3]{ \begin{tikzpicture} \node[regular polygon, regular polygon sides=3, draw] at (0,0) { #1 \nodepart{lower} #2 #3 }; \end{tikzpicture} }