I cannot compile a beamer presentation with the circuitikz package. Does anyone know if it is possible, I get an error:
undefined control sequence \usepackage{circuitikz}
Below is my code (simplified version)
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage{default}
\usepackage{tikz}
\usepackage{siunitx}
\usepacakge[siunitx]{circuitikz}
\begin{document}
\begin{frame}
\begin{figure}[!htb]
\centering
\begin{circuitikz}[scale = 1.4] \draw
(0,0) node[anchor=east]{$E_{in} -$}
to[short, o-] (4,0)
to[V, v=$E_{emf}(t)$] (4,2)
to[L, l=$L_m$] (3,2)
to[R, l=$R_m$] (1,2) -- (0,2)
to[short, o-] (0,2)
node[anchor=east]{$E_{in} +$};
\end{circuitikz}
\caption{Circuit Diagram of Motor}
\label{fig:basicMotor_wInductor}
\end{figure}
\end{frame}
\end{document}
I could just copy/ paste the image from my report, but I would prefer to include the code in Beamer. Thanks!