I'm trying to combine the syntax for orthogonal edges (p |- q) with the syntax for calculation relative coordinates ($ (a) + (1,0) $). Example:
\draw ($ (node1.south) + (1,0) $) to ( ($ (node1.south) + (1,0) $) |- node2.north);
However, I get an error:
Package pgf Error: No shape named ($ (node1 is known.
There is an obvious work-around in this case, but for educational purpose I'd like to understand why this syntax does not work, and how to solve the problem in general? Intuitively the documentation would suggest that I can simply combine these two syntaxes.
Update -- MWE:
\documentclass{report}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
\node at (0, 0) (node1) {Hello};
\node at (0, -2) (node2) {World};
% working:
\draw ($ (node1.south) + (1,0) $) to ( node1.south |- node2.north);
% not working:
\draw ($ (node1.south) + (1,0) $) to ( ($ (node1.south) + (1,0) $) |- node2.north);
\end{tikzpicture}
\end{document}
\documentclassand the appropriatepackagesthat sets up the problem, and shows what you have tried. While solving problems can be fun, setting them up is not. Then, those trying to help can simply cut and paste your MWE and get started on solving the problem. – Apr 17 '14 at 11:54node1has never been defined before. – Claudio Fiandrino Apr 17 '14 at 11:55toto the front ofnode2.northin the last not working line. – Jesse Apr 17 '14 at 12:35!.5!has anything to do with coordinate calculation :). – bluenote10 Apr 17 '14 at 13:14