I would like to use Circuitikz to draw circuit diagrams for a project report. However, it seems to conflict with amsmath, which I also need for the report.
Does anyone else know why this is, and a work around?
Running win7, TXC, MikteX
here's my code
Code: Select all
Code, edit and compile here:
\documentclass{article}\usepackage{fancyhdr}\usepackage{setspace}\usepackage{amsbsy}%\usepackage{amsmath}\usepackage{amsfonts}\usepackage{graphicx}\usepackage{psfrag}\usepackage[sectionbib,round]{natbib}\usepackage{hyperref}\usepackage{subfig}\usepackage{rotating}\usepackage{braket}\usepackage[siunitx]{circuitikz}\usepackage{tikz}\begin{document}\begin{figure}[htbp]%\begin{center}\subfloat[Series RLC Circuit]{\label{fig:seriesrlc}\begin{circuitikz}[scale=1.2]\draw(0,0)to[sV=$V_0\sin(\omega t)$, i^>=$I_s$] (0,2) --(0,2)to[C=$C$] (2,2) --(2,2)to[L=$L$] (2,0) --(2,0)to[R, l_=$R$] (0,0);\end{circuitikz}}\subfloat[Parallel RLC Circuit]{\label{fig:parallelrlc}\begin{circuitikz}[scale=1.2]\draw(0,0)to[sV=$V_0\sin(\omega t)$, i^>=$I_p$] (0,2)(1,2)to[C=$C$,i>^=$I_C$,*-*] (1,0)(1,0)to[short] (3,0)(2,2)to[L=$L$,i>^=$I_L$,*-*] (2,0)(0,0)to[short] (1,0)(3,2)to[R=$R$,i>^=$I_R$,*-*] (3,0)(0,2)to[short] (3,2);\end{circuitikz}}\end{center}\caption{Resonant RLC Circuits: \protect\subref{fig:seriesrlc} Series RLC configuration. \protect\subref{fig:parallelrlc} Parallel RLC configuration}\label{fig:rlcres}\end{figure}\end{document}
Thanks in advance
kind regards,
niklz