Consider the following LaTeX manuscript (the TikZ
code is copied from the first example on p. 146 of the TikZ & PGF Manual for Version 3.0.1a):
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\draw (0,0) -- (1,1)
[rounded corners] -- (2,0) -- (3,1)
[sharp corners] -- (3,0) -- (2,1);
\end{tikzpicture}
\end{document}
Compiling this file with pdflatex
produces the following pdf file:
Note that the corners don't change from sharp to round and vice versa immediately after the corresponding option is given, but rather starting with the next corner. How can I make the options apply immediately?
(1,1)
and(2,0)
.[rounded corners]
option use the(0,0)
and(1,1)
points, just like the--(2,0)
path operation uses the(1,1)
point?0,0
available as you hadn't told it to save enough information to round until later,