8 Jul 15:51
Re: feature request
Goebel, Juergen <juergen.goebel <at> eads.com>
2009-07-08 13:51:12 GMT
2009-07-08 13:51:12 GMT
Fabien.Dagnat <at> telecom-bretagne.eu wrote:
> \documentclass{article}
> \usepackage{tikz}
> \usetikzlibrary{calc}
> \def\pos{0.5}
> \def\drawHVH(#1)(#2){
> \draw ($\pos*(#2) + (#1) - \pos*(#1)$) node[coordinate]
> (middle) {};%
> \draw (#1) -| (middle) |- (#2);
> }
> \begin{document}
>
> \begin{tikzpicture}
> \node[circle,draw] (a) at (0,0) {A};
> \node[circle,draw] (b) at (5,3) {B};
> \node[circle,draw] (c) at (-5,-3) {C};
> \drawHVH(a)(b)
> \def\pos{0.8}
> \drawHVH(a)(c)
> \end{tikzpicture}
> \end{document}
Thanks a lot (also to Robert)!
> You can easily adapt it for the other case...
ACK.
> To get your solution you
> only need to modify the tikz parser...
No problem, it'll take just five minutes or so.
)
Best,
Juergen
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
RSS Feed