An alternative way to do this is to use the every to
style. This gets automatically inserted at the beginning of ... wait for it ... every to. So to[something]
is actually to[every to/.try,something]
(the .try
is a failsafe to ensure that if every to
isn't defined then no error occurs). Hence:
\documentclass{article}
%\url{http://tex.stackexchange.com/q/33521/86}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[every to/.style={out=up,in=down}]
\draw (1,0) to (2,0) to (3,0) to [in=45] (4,0);
\end{tikzpicture}
\end{document}
produces exactly the same line as Torbjørn's examples.
The advantage of this method is that it plays nicely with other things in the picture. The reason that \tikzset{in=up,out=down}
is safe is that the keys in
and out
only make sense for to
s. But if you wanted to put something else in every to
which had meaning elsewhere (nothing springs to mind right now ...) then every to
is the better way to pass options to just the to
parts.