Circuits
2asources

Description

This is a complete LaTeX document with a document class of standalone. It includes the packages circuitikz, siunitx, amsmath, and amssymb. The circuitikz package is used to draw an electronic circuit diagram. The circuit consists of two voltage sources, two resistors, and a current source connected in a circuit. The diagram is drawn using the circuitikz environment within a tikz environment. The nodes in the circuit are connected using the to command, and various options are specified for the circuit elements using different parameters. The circuit elements include resistors (R), voltage sources (V), and a current source (I). Labels for the circuit elements are specified using $ delimiters, and various parameters like i> and l^= are used to customize the appearance of the circuit elements. The siunitx package is used to typeset units and quantities with correct spacing and formatting.

Keywords

circuitikz, siunitx, amsmath, amssymb, documentclass, usepackage, tikz, circuit

Source Code

Circuits

\documentclass[tikz]{standalone}
\usepackage{circuitikz}
\usepackage{siunitx}
\usepackage{amsmath,amssymb}
\begin{document}
\begin{circuitikz}
	\draw (0,0) to[I,i>=$2\si{\ampere}$] (0,2) %% Note _>= instead of >=
	to [short,-*] (2,2)
	to [R=$50\si{\ohm}$,v=$v_o$](2,0);
	\draw (2,2) to [R,l^=$1\si{\ohm}$] (4,2)
	to [V,v<=$45 \si{\volt}$](4,0)
	to [R,l^=$4\si{\ohm}$] (2,0);
	\draw (0,0) to [short,-*] (2,0);
\end{circuitikz}
\end{document}
Deploy to Overleaf