8 Jan 12:10
Re: Connecting Nodes with two parallel lines
Till Tantau <tantau <at> tcs.uni-luebeck.de>
2007-01-08 11:10:01 GMT
2007-01-08 11:10:01 GMT
Hello everyone,
the problem lies in the fact that shifts normally have no effect on
anchored coordinates. If this were the case, then a scale=2 would
make it impossible to access any nodes anchors sensibly.
Anyway, to solve this particular problem, you have to move the
xshift=2pt into the node references like this:
\draw[color=blue,solid,<-] ([xshift=2pt]CENTER) -- ([xshift=2pt]PAR);
A bit ugly, bit it should work. The shift options given inside (...)
*do* apply also to node anchors.
Hoping this helps,
Till
Am 08.01.2007 um 00:51 schrieb Matthias Steinbrink:
> Dear users,
>
> I need to draw a diagram in which some nodes are connected with two
> lines parallel to each other but with different style and arrow
> orientation. I tried to achieve it by the enclosed code but the two
> lines are drawn on top of each other, not next to each other. I
> guess it
> has to do with the node naming but I cannot figure out how I can
> get the
> two lines to appear.
>
> I hope someone can help me or point me into the right direction.
>
> Thanks in advance and best regards
>
> Matthias
>
> %%%CODE%%%
> \documentclass{article}
> \usepackage{tikz}
> \usetikzlibrary{shapes,backgrounds,arrows}
>
> \begin{document}
> \begin{tikzpicture}
> %% Declaration of nodes
> \node (CENTER) at (7,7) {\large\bfseries Center};
> \node[text width=2cm] (PAR) at (6,2.5) {\small Partner\\City};
> %% Connection the nodes
> \draw[color=red,dashed,->] (CENTER) -- (PAR);
> \draw[xshift=2pt,color=blue,solid,<-] (CENTER) -- (PAR);
> \end{tikzpicture}
> \end{document}
>
> ----------------------------------------------------------------------
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> pgf-users mailing list
> pgf-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pgf-users
--
Prof. Dr. Till Tantau <tantau <at> tcs.uni-luebeck.de>
http://www.tcs.uni-luebeck.de
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
RSS Feed