## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ capacitor plates used as coordinates

Information and discussion about graphics, figures & tables in LaTeX documents.
todeilatiberia
Posts: 3
Joined: Fri Aug 02, 2019 2:58 pm

### capacitor plates used as coordinates

Greetings,

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!

rais
Posts: 220
Joined: Sun Nov 16, 2014 8:51 pm
you could access their geographic' anchors, such as
\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}`

Note, that these anchors are given, before the shape may be rotated. Since the bipoles are defined from left (west) to right (east), "west" of a bipole may be facing north in your drawing...

KR
Rainer