# Circuitikz: Dashed lines and arrows

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
\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}
-

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
\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}

-
Thanks for the arrow, but I don't like how the dashed line is shifted up. Additionally, how can I achieve the capacitance look of the book? –  dustin Mar 12 at 20:38
Use [densely dashed] for better look. They are battery, not capacitance. I will edit my answer. –  ferahfeza Mar 12 at 20:41
By dash lined shifted up, I mean that your dashed line is above the point B whereas the solid goes into A uniformly. –  dustin Mar 12 at 20:43
From your comment, I found that I need to use battery1. Thanks. –  dustin Mar 12 at 20:52
Dashed lines parameter can be adjusted with \tikzstyle{densely dashed}=[dash pattern=on 4pt off 3pt] and draw from east anchor of node. –  ferahfeza Mar 12 at 20:56