# Why do my “to path” arrowheads disappear when I upgrade to PGF 2.10?

Since I upgraded to PGF 2.10, some of my arrows drawn with to don't look right anymore. For instance, they are missing arrow-heads, and some other styles I applied to them have also disappeared. For example:

\begin{tikzpicture}
\draw (0,0) to[->, line width=2mm] (3,1);
\end{tikzpicture}


I'm not getting any error messages nor anything relevant in the log file. This example compiles correctly with PGF 2.00.

-

Since PGF 2.10, arguments modifying path style no longer work when you put them after the to keyword. They should be put directly after the \draw command. Like this:

\begin{tikzpicture}
\draw[->, line width=2mm] (0,0) to (3,1);
\end{tikzpicture}


All in all, this took me weeks to find out. For quite a while, I even downgraded to PGF 2.00 because my arrows didn't work.

I'm not sure if this is a bug in PGF 2.10 or if I was never meant to put these properties on to, and PGF 2.10 fixed the mistake. However, in the latter case, I would have expected an error message.

In any case, I advice you not to worry about it and just put these sorts of properties on \draw, which always seems to work.

If I'm not mistaken, to path didn't have any options before so that's why TikZ could understand the options for example this also works : \draw (0,0) to (3,1) [->, line width=2mm]; So if it's not ambiguous, TikZ is smart enough to see that options are coming in, but here to also looks for extra options that are not necessarily related to the path drawing, hence the conflict. So it cannot throw errors since the code is legitimate. – percusse Sep 13 '12 at 13:19
Hm... No, to had options before, like in and out. That's basically the reason I was using to in the first place. – mhelvens Sep 13 '12 at 13:27