4

I know that I can make nodes that are squares or circles:

\documentclass{article}
\usepackage{tikz}
\begin{document}
    \begin{tikzpicture}
        \node (foo) [draw] {foo};
        \node [draw, circle, right of=foo] {bar};
    \end{tikzpicture}
\end{document}

enter image description here

But I would like a node that has the form of an arrow pointing to the right. In this case so that the foo node points towards the bar node.

How can I easily do this? Is there some library or such with fancy node shapes perhaps?

1

1 Answer 1

4

shapes.arrows is what you want:

enter image description here

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.arrows,positioning}
\begin{document}
    \begin{tikzpicture}
        \node[draw, single arrow] (foo) {foo};
        \node [draw, circle, right = 0pt of foo] {bar};
    \end{tikzpicture}
\end{document}

You must log in to answer this question.

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