How can I add a dashed line and an arrow?
I would like to have an arrow after the resistor pointing right and a dashed line from B to the junction.
Additionally, the book as a symbol that mimics a ground but only has two lines like capacitance. Can this be done as well?
The books diagram
My code:
\documentclass[convert = false]{standalone}
\usepackage[utf8]{inputenx}% http://ctan.org/pkg/inputenx
% Euler for math | Palatino for rm | Helvetica for ss | Courier for tt
\renewcommand{\rmdefault}{ppl}% rm
\linespread{1.05}% Palatino needs more leading
\usepackage[scaled]{helvet}% ss // http://ctan.org/pkg/helvet
\usepackage{courier}% tt // http://ctan.org/pkg/courier
\usepackage{eulervm} % http://ctan.org/pkg/eulervm
% a better implementation of the euler package (not in gwTeX)
\normalfont%
\usepackage[T1]{fontenc}% http://ctan.org/pkg/fontenc
\usepackage{textcomp}% http://ctan.org/pkg/textcomp
\usepackage[american, cuteinductors]{circuitikz}
\usepackage{siunitx}
\begin{document}
\begin{circuitikz}[scale = 2]
\draw (0, 0)
to[C, l^ = \(v_2\), -*] (0, 1)
node[anchor = east] {\(B\)}
to[short] (.5, 1.25)
to[short] (.5, 2)
to[R, l^ = ${R = \SI{1}{\ohm}}$] (3, 2)
to[short] (4, 2)
to[L, l^ = ${L = \SI{1}{\henry}}$] (4, 0)
to[short] (0, 0);
\draw (1, 0)
to[C, l_ = \(v_1\), -*] (1, 1)
node[anchor = west] {\(A\)}
to[short] (.5, 1.25);
\node at (.1, .65) {\(+\)};
\node at (1.1, .65) {\(+\)};
\end{circuitikz}
\end{document}
Best Answer
A possible but a little long solution may be as follows: