Is it possible to have a circuit as a theorem-definition box, using circuits.ee.IEC
or something similar (e.g. CircuiTikZ
)?
I want:
- to have a text inside the circuit,
- the circuit's width fixed at
0.8\textwidth
and - the circuit's height as long as it takes to include all the text,
like this:
I can't understand the coding, because the manual is in french. I have also made a code for starting.
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{circuits.ee.IEC}
\begin{document}
\begin{center}
\begin{tikzpicture}[circuit ee IEC,semithick,
every info/.style={font=\footnotesize},
small circuit symbols,
set resistor graphic=var resistor IEC graphic]
\draw (0,0) to [ground={near start, rotate=180}] (0,1)
to [inductor={direction info={info=$L$},info'=$5H$}] (0,3)
to [break contact={info=$\delta$}] (2,3)
to [battery={info={[yshift=-1em]+\quad -},info'={$ 120V $}}] (3,3)
to [resistor={direction info={info=$R$}, info'=$3\Omega$}] (6,3)
to [capacitor={info'=$C$, info=$3F$}] (6,1)
to [ground={near end}] (6,0);
\end{tikzpicture}
\end{center}
\end{document}
Thanks in advanced!
tcolorbox
? How can I do it? – Kώστας Κούδας Jul 6 '19 at 20:51