![如何才能增加开极圆的尺寸?](https://linux22.com/image/458626/%E5%A6%82%E4%BD%95%E6%89%8D%E8%83%BD%E5%A2%9E%E5%8A%A0%E5%BC%80%E6%9E%81%E5%9C%86%E7%9A%84%E5%B0%BA%E5%AF%B8%EF%BC%9F.png)
如何ocirc
在不影响其他组件的情况下增加开极的尺寸?手册中
有说明 \ctikzset{nodes width=0.15}
,但这也会增加开关中 ocirc 的尺寸。
\documentclass[tikz, border=1cm]{standalone}
\usepackage[american, siunitx]{circuitikz}
\begin{document}
\begin{tikzpicture}[thick]
\ctikzset{nodes width=0.15}
\draw (0,5) node[ocirc] at (0,5){} to [I] ++ (2,0) to [cute closing switch] ++(2,0);
\end{tikzpicture}
\end{document}
答案1
您可以绘制一个规则的圆并inner sep
手动设置。这类似于第 4.19.3 节中绘制彩色点的示例独立设计变压器线圈在里面手动的(在当前 1.6.0 版本中,此内容位于第 131 页)。
\documentclass{article}
\usepackage[american, siunitx]{circuitikz}
\begin{document}
\begin{tikzpicture}[thick]
\draw (0,5) node[circle, draw, fill=white, inner sep=3pt] at (0,5){} to [I] ++ (2,0) to [cute closing switch] ++(2,0);
\end{tikzpicture}
\end{document}
答案2
您还可以定义新的“极点说明符”,如下所示:
\documentclass[margin=3mm]{standalone}
\usepackage[american,siunitx,RPvoltages]{circuitikz}
\begin{document}
% you seems to like big poles...
\tikzset{% this definition is at tikz level, because
% it will be used with a `node[... ]` element
bigO/.style={ocirc, circuitikz/nodes width=0.1},
}
\ctikzset{% define new poles style
O-/.style={bipole nodes={bigO}{none}},
O-O/.style={bipole nodes={bigO}{bigO}},
-O/.style={bipole nodes={none}{bigO}},
}
\begin{circuitikz}
\draw (0,0) to [I, O-] ++(2,0)
to [cute closing switch,-O] ++(2,0);
\end{circuitikz}
\end{document}