14 lines
703 B
Plaintext
14 lines
703 B
Plaintext
%https://www.overleaf.com/learn/latex/LaTeX_Graphics_using_TikZ%3A_A_Tutorial_for_Beginners_(Part_4)%E2%80%94Circuit_Diagrams_Using_Circuitikz
|
|
|
|
\begin{circuitikz}[scale=1.2]
|
|
%\ctikzset{misc/lampshape/height=0.75, misc/lampshape/width=0.75}
|
|
\draw (0,0) node[] (UL) {} to[short, o-*] (1,0) to
|
|
[normal open switch,l=\scriptsize{$p_1$}, o-, n=SW1](1.5,0)
|
|
to (2,0)
|
|
to [normal open switch, l=\scriptsize{$p_2$}, o-,n=SW2](2.5,0)
|
|
to [lamp,l_=\scriptsize{$G$},n=lm](4,0) to [short,-o](4.5,0)
|
|
(SW1.s) node[below,xshift=-3mm,yshift=1mm]{\scriptsize $1$}
|
|
(SW2.s) node[below,xshift=-3mm,yshift=1mm]{\scriptsize $2$}
|
|
(lm.ne) node[below,xshift=8mm,yshift=2mm]{\scriptsize $p=p_1 \wedge p_2$};
|
|
|
|
\end{circuitikz} |