我想知道如何在乳胶中建立串联和并联关联?我正在尝试使用以下代码:
\documentclass{standalone}
\usepackage{tikz, tkz-euclide}
\usepackage[american]{circuitikz}
\begin{document}
\begin{circuitikz}
\draw (0,0) to[C=$C_{1}$] (2,0) (0,0) to[C=$C_{1}$] (4,0) (0,0) to[C=$C_{1}$] (8,0);
\end{circuitikz}
\end{document}
几乎就是我想要的方式,我只想显示这三个电容器串联然后并联。请帮忙
答案1
你很接近了。我实际上不使用 tcircuitikz,但这可以帮到你:
\documentclass{article}
\usepackage{tikz, tkz-euclide}
\usepackage[american]{circuitikz}
\usepackage{subcaption}
\begin{document}
\begin{figure}[!htb]
\begin{minipage}{0.4\textwidth}
\centering
\begin{circuitikz}
\draw (0,0) to[C=$C_{1}$] (2,0);
\draw (0,-2) to[C=$C_{2}$] (2,-2);
\draw (0,-4) to[C=$C_{3}$] (2,-4);
\draw (0,0)--(0,-6) (2,0)--(2,-6);
\draw (0,-6) to[battery1={9 V}] (2,-6);
\end{circuitikz}
\captionof{subfigure}{Paralel}
\end{minipage}\hfill
\begin{minipage}{0.4\textwidth}
\centering
\begin{circuitikz}
\draw (0,0) to[C=$C_{1}$] (2,0) to[C=$C_{2}$] (4,0) to[C=$C_{3}$] (6,0);
\draw (0,0)--(0,-2) to[battery1={9 V}] (6,-2)--(6,0);
\end{circuitikz}
\captionof{subfigure}{In Series}
\end{minipage}
\captionof{figure}{Paralel and In Series}
\end{figure}
\end{document}
输出:
也许也建议使用siunitx
包。
答案2
\documentclass{article}
\usepackage{tikz, tkz-euclide}
\usepackage[american]{circuitikz}
\usepackage{subcaption}
\begin{document}
\begin{figure}[!htb]
\begin{minipage}{0.4\textwidth}
\centering
\begin{circuitikz}
\draw (0,0) to[C=$C_{1}$] (2,0) to[C=$C_{1}$] (4,0) to[C=$C_{1}$] (6,0);
\end{circuitikz}
\caption{capacitores em série.}
\end{minipage}
\end{figure}
\end{document}