[Tex/LaTex] Circuitikz: Dashed lines and arrows

circuitikz

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?

enter image description here

The books diagram

enter image description here

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:

   \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}
\tikzstyle{densely dashed}=          [dash pattern=on 4pt off 3pt]
\begin{document}
\begin{circuitikz}[scale = 2]
  \draw                                    (0, 0)
        to[battery1, l^ = \(v_2\), -*]             (0, 1)
        node[anchor = east](BB) {\(B\)};
   \draw [densely dashed] (BB.east)--(.5, 1.25) node (AA){} ;
   \draw (AA)[short]  to                         (.5, 2)
        to[R, l^ = ${R = \SI{1}{\ohm}}$]    (3, 2)
      to[short,i=$i(t)$]                           (4, 2)
      to[L, l^ = ${L = \SI{1}{\henry}}$]  (4, 0)
     to[short]                           (0, 0);
   \draw                                     (1, 0)
        to[battery1, 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}

enter image description here