I'd like to be able to define an edge that modify its properties according to some features of the nodes (for example the position of their anchor points). In general, I'm interested in how nodes and edges share information. But, in particular, I'd like to automatize the answer https://tex.stackexchange.com/a/247981/58947 probably defining a style for an edge to get something like

\draw[!-!] (A) edge (B);

where the "in" and "out" options for the edge are modified by the rotation angle of the nodes.

  • 1
    How should TikZ decide which side of the node it should connect to? What percusse has done in a let … in path specification can be hidden inside a to path (where one has access to the specified coordinates via \tikztostart and \tikztotarget, here A and B respectively). – Qrrbrbirlbel Jun 1 '15 at 18:40
  • @Qrrbrbirlbel You are right. In fact, I started thinking about that using the symbol [-] ]-[ ]-] [-[ but then I realized it could be stupid since square bracket are fundamental in TeX syntax, and I replaced them with ! probably too symmetric. What if one defines e.g. !-!bt and !-!tb ? – Podantoro Jun 1 '15 at 18:47
  • Thanks for the commands \tikztostart \tikztotarget I didn't know them! – Podantoro Jun 1 '15 at 18:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.