Like this:
.------<------.
| |
v ^
| |
'------>------'
I am currently using
\begin{scope}[very thick,->]
\draw (-4,1)--(-4,0)--(0.1,0);
\draw (0,0)--(4,0)--(4,1.1);
\draw (4,1)--(4,2)--(-0.1,2);
\draw (0,2)--(-4,2)--(-4,0.9);
\end{scope}
but this is rather inelegant. I prefer something more like
\begin{scope}[very thick,middle decoration=>]
% ^^^^^^^^^^^^^^^^^ a hypothetical option
\draw (-4,0)--(4,0);
\draw (4,0)--(4,2);
\draw (4,2)--(-4,2);
\draw (-4,2)--(-4,0);
\end{scope}







every path/.style={}s then it shouldn't be too wordy. Nice! (Better than mine) – Andrew Stacey Sep 16 '10 at 20:56postaction={decorate}into theevery path/.style={}, I get an error:Undefined control sequence. \pgf@decorate@processnextinputsegmentobject. I have no idea why. – Caramdir Sep 16 '10 at 21:09-latex? – Sigur Sep 05 '14 at 00:18\arrow{>}to\arrow{latex}should work. – Caramdir Sep 05 '14 at 03:39