I'm trying to understand how wire crossings work with CircuiTikz. I have seen the famous "Kink crossings" but I would like first trying to solve the problem with the crossings CircuiTikz provides.
For instance: How would you draw a crossing on that intersection using the CircuiTikz package? Without knowing the coordinates nor relative position of the turn from C to D.
This is the code I wrote:
\documentclass[a4paper,12pt]{article}
\usepackage[a4paper, margin=2cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[]{circuitikzgit}
\begin{document}
\begin{circuitikz}
\draw (0,0)node[circ]{a} -- (4,0)node[circ]{b};
\draw (1,2)node[circ]{c} |- (3,-2)node[circ]{d};
\end{circuitikz}
\end{document}
It is important for me not to use the node-style format that the manual suggests, because this is for a bigger/more complex circuit I'm drawing and I would like to draw the crossing similar to a path style from one coordinate to another like:
\draw (1,2)node[circ]{c} to[crossing] |- (3,-2)node[circ]{d};
But obviously this does not work.
As you can see I have used the last release of CircuiTikz, this is were you can get it.
to[crossing]
is issued, so sometime a bit of trial and error is needed to position it. As I understand it this means that you cannot use this kind of crossing if you don't know (or don't want to try out) where the crossing is, in case it is not in the center of a line. The same goes for explicit crossing nodes described below in the manual.