Skip to content

Instantly share code, notes, and snippets.

@wchargin
Created January 20, 2016 13:15
Show Gist options
  • Save wchargin/dc23a9adfcf91811e1f4 to your computer and use it in GitHub Desktop.
Save wchargin/dc23a9adfcf91811e1f4 to your computer and use it in GitHub Desktop.
\documentclass{article}
\usepackage{tikz}
\usepackage[siunitx,americanvoltages]{circuitikz}
\usepackage{geometry}
\pagenumbering{gobble}
\begin{document}
\begin{center}
\begin{tikzpicture}
\begin{scope}
\draw
(0, -2) to [V^=$V_\mathrm{s}$,i_=$I$]
(0, 2) to [R=$R_1$, v_=$V_{R_1}$]
(3, 2) to [R=$R_2$, v_=$V_{R_2}$]
(6, 2) to [R=$R_3$, v_=$V_{R_3}$]
(6, -2) to (0, -2)
;
\end{scope}
\begin{scope}[yshift=-5cm]
\draw
(0, -2) to [V^=$\SI{10}{\volt}$,i_=$I$]
(0, 2) to [R=$\SI{300}{\ohm}$, v_=$V_{R_1}$]
(3, 2) to [R=$\SI{500}{\ohm}$, v_=$V_{R_2}$]
(6, 2) to [R=$\SI{1200}{\ohm}$, v_=$V_{R_3}$]
(6, -2) to (0, -2)
;
\end{scope}
\begin{scope}[yshift=-9cm]
\draw
(0, -1) to [V^=$\SI{10}{\volt}$,i_=$\SI{5}{\milli\ampere}$]
(0, 1) to
(2, 1) to [R=$\SI{1200}{\ohm}$]
(2, -1) to (0, -1)
;
\end{scope}
\begin{scope}[yshift=-13cm]
\draw
(0, -2) to [V^=$\SI{10}{\volt}$,i_=$I$]
(0, 2) to [R=$\SI{300}{\ohm}$, v_=$\SI{1.5}{\volt}$]
(3, 2) to [R=$\SI{500}{\ohm}$, v_=$\SI{2.5}{\volt}$]
(6, 2) to [R=$\SI{1200}{\ohm}$, v_=$\SI{6}{\volt}$]
(6, -2) to (0, -2)
;
\end{scope}
\end{tikzpicture}
\end{center}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment