我在尝试将我可爱的电感器变大时遇到了问题。我找到了一种让它们变大的方法,但这/tikz/circuitikz/bipoles/length
会缩放整个电感器。我只是希望它更大,而不是更厚。我可以使用什么?
答案1
“可爱电感”的默认定义是
\ctikzset{bipoles/cuteinductor/height/.initial=.3}
\ctikzset{bipoles/cuteinductor/lower coil height/.initial=.15}
\ctikzset{bipoles/cuteinductor/width/.initial=.6}
\ctikzset{bipoles/cuteinductor/coils/.initial=5}
\ctikzset{bipoles/cuteinductor/coil aspect/.initial=.5}%percentage of inductor width, which is covered by lower coil
并非所有这些都与尺寸有关。下面将创建一个比默认电感大两倍的电感。
\documentclass{standalone}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}
\draw (0,0) to[cute inductor] (2,0);
\ctikzset{bipoles/cuteinductor/height=.6}
\ctikzset{bipoles/cuteinductor/lower coil height=.3}
\ctikzset{bipoles/cuteinductor/width=1.2}
\draw (0,1) to[cute inductor] (2,1);
\end{circuitikz}
\end{document}