I want my diagram to show that two intersecting lines are not actually connected, but one passes above the other.
The best result I would like to achieve would be a small semicircle as used in electrical circuits. Is this possible? There is something similar at TeXample but it only handles horizontal and vertical lines.
I have this code that makes one of the lines stop a bit before the intersection by creating an empty node. This produces the expected result but I don't think it is the neatest way to do what I want:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node (A) at (0,1) {A};
\node (B) at (1,-1) {B};
\node (C) at (1,1) {C};
\node (D) at (-1,-1) {D};
\node (i) at (intersection of A--B and D--C) {};
\draw (A) -- (B);
\draw (D) -- (i);
\draw (i) -- (C);
\end{tikzpicture}
\end{document}
.tex
file, starting with\documentclass
and ending with\end{document}
? Then I can paste it into my editor, reproduce your situation on my machine, and start thinking about a solution.