I'm trying to line up a few isosceles triangles, but I cannot get all of them to align at their top (or bottom) properly. Following is the MWE:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}
\tikzstyle{tri} = [draw, isosceles triangle, shape border rotate=-90,inner sep=0pt, minimum width=4em]
\begin{document}
\begin{center}
\begin{tikzpicture}[node distance=1.8cm,>=latex']
\node [tri] (gain3) {$4$};
\node [tri,left of=gain3] (gain2) {$3$};
\node [tri,left of=gain2] (gain1) {$-2$};
\node [tri,left of=gain1] (gain0) {$1$};
\end{tikzpicture}
\end{center}
\end{document}
And yes, if the minus sign in front of the 2 is dropped, everything lines up properly. How can this be fixed in an elegant way? (i.e., without putting the contents of the triangle nodes inside an \mbox of predefined size, etc.)








shape border uses incircleoption to each triangle. – Paul Gaborit Mar 19 '18 at 13:56