How can I use the positive and the negative pins from a capacitor as reference to connect another parts in tikz?
[pC, l=$C_{21}$, name=C21, -]
Is it possible also for the normal capacitors?
[C, l=$C_{20}$, name=C20, -]
Thanks!
[pC, l=$C_{21}$, name=C21, -]
[C, l=$C_{20}$, name=C20, -]
\documentclass{article} \usepackage[siunitx, european]{circuitikz} \begin{document} \begin{circuitikz} \draw (0,0) to [pC, l=$C_{21}$, name=C21, -] ++(0,-1); \draw (2,0) to [C, l=$C_{20}$, name=C20, -] ++(0,-1); \draw (6,0) to [C, l=$C_{22}$, name=C22, -] ++(1,0); \draw[red, latex-] (C21.east) -- +(1,-1) node[right] {C21.east}; \draw[blue, latex-] (C20.west) -- +(1,1) node[right] {C20.west}; \draw[green!75!black, latex-] (C22.west) -- +(-1,1) node[above] {C22.west}; \draw[green!75!black, latex-] (C22.east) -- +(1,1) node[above] {C22.east}; \end{circuitikz} \end{document}
Return to “Graphics, Figures & Tables”
Users browsing this forum: No registered users and 7 guests