Below is what I have so far
\documentclass[convert = false]{standalone}
\usepackage[american]{circuitikz}
\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
\begin{document}
\begin{circuitikz}[scale = 2]
\draw (1, 1.5)
to[short] (2, 1.5)
to[open, v^ = $y(t)$, o-o] (2, 0)
to[short] (1, 0);
%
\draw (-2, 0)
to[short] (1, 0)
to[C, l_ = $C$, *-*] (1, 1.5)
to[L = $L$] (-1, 1.5)
to[R = $R$] (-2, 1.5);
\end{circuitikz}
\end{document}
Produces
I can't figure out how to add the C = 1<\farad>
as well as for R
and L
.
Additionally, I don't know how to complete the circuit. Below you will see the circuit I am trying to create.
Edit 1:
I have been able to complete the circuit diagram.
How do I switch the american voltage source
+
and-
?Also, how do I move
x(t)
to the left hand side?Can I moveApparentlyL
andR
so that they are above?L, l_
moves it above. I don't know why since to me l should be left and underscore should mean below.
\documentclass[convert = false]{standalone}
\usepackage[american]{circuitikz}
\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
\begin{document}
\begin{circuitikz}[scale = 2]
\draw (1, 1.5)
to[short] (2, 1.5)
to[open, v^ = $y(t)$, *-*] (2, 0)
to[short] (1, 0);
%
\draw (-1.5, 0)
to[short] (1, 0)
to[C, l_ = $C$] (1, 1.5)
to[L = $L$] (-.5, 1.5)
to[R = $R$] (-1.5, 1.5)
to[american voltage source, v^ = $x(t)$] (-1.5, 0);
\end{circuitikz}
\end{document}
Edit 2:
So I added \usepackage{siunitx}
but the below doesn't work
to[C, l_ = $C = \SI{1}{\farad}$]
to[C, l_ = $C$= 1<\farad>]
siunitx
, see my answer. (I know it's not TIkZ but none the less.)