1 Dec 2010 21:28
Anchor points along lines broken recently?
Johan Ihrén <johani <at> johani.org>
2010-12-01 20:28:15 GMT
2010-12-01 20:28:15 GMT
Hi,
I've used the option "pos=0.n" to specify where along a line or curve I want to attach. But when recently
upgrading (to r20236) of pgf this no longer worked. Reverting to the version shipped with f.i. MacTeX 2010
(r15878) makes it work nicely again. Below is a short example that illustrates the problem.
Regards,
Johan (a very happy pgf/TikZ user)
----
\documentclass[]{ltxdoc}
\usepackage{tikz,pgf}
\begin{document}
\begin{tikzpicture}
\node[draw] (a) at (2.1,5) {A};
\node[draw, anchor=east] (b) at (10,5) {B};
\node[draw, anchor=east] (c) at (10,2) {C};
\draw[->,green] (b) to (a) node[pos=0.5] (foo) {};
\draw[->,green] (c) to[out=135,in=270] (a) node[pos=0.3] (bar) {};
\node (txt) at (5,4) {points along lines};
\draw[<-,green,line width=0.75pt] (foo.center) -- (txt);
\draw[<-,green,line width=0.75pt] (bar.center) -- (txt);
\end{tikzpicture}
\end{document}
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
(Continue reading)
RSS Feed