I want to combine the perpendicular drawing of Tikz (|-
) with the wire ending shapes of Circuitikz (*-
) that is use inside the to
operand.
I want to do something like the last line of code where the |-
has no effect.
\begin{circuitikz}[x=10mm,y=10mm]
\draw (0,0) to[inline not] ++(2,0) coordinate (A) to[inline not] ++(2,0) coordinate (B) to[inline not] ++(2,0) coordinate (C) to[inline not] ++(2,0) coordinate (D);
\tikzset{mux/.style={muxdemux, muxdemux def={Lh=6, Rh=4, NL=4, NB=2, NR=1}}}
\draw (5,-4) node[mux,rotate=-90] (sel) {A};
\draw (D) |- ($(D)!0.5!(sel.lpin 1)$) -| (sel.lpin 1);
\draw (C) |- ($(C)!0.5!(sel.lpin 2)$) -| (sel.lpin 2);
\draw (B) |- ($(B)!0.5!(sel.lpin 3)$) -| (sel.lpin 3);
\draw (A) to[short,*-,|-] ($(A)!0.5!(sel.lpin 4)$) -| (sel.lpin 4);
\end{circuitikz}
Thank you
to path={ |- (\tikztotarget)}
?to path
macro ofcircuitikz
is already a mess as it is, not sure if I want to do that... ;-)