![我通常如何更改 CircuiTikZ 中终端的长度/尺寸?](https://linux22.com/image/480072/%E6%88%91%E9%80%9A%E5%B8%B8%E5%A6%82%E4%BD%95%E6%9B%B4%E6%94%B9%20CircuiTikZ%20%E4%B8%AD%E7%BB%88%E7%AB%AF%E7%9A%84%E9%95%BF%E5%BA%A6%2F%E5%B0%BA%E5%AF%B8%EF%BC%9F.png)
答案1
这显示了组件的一些锚点。请注意,如果需要,可以覆盖或剪切引线。
\documentclass[border=2pt]{standalone}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}
\draw (0,0) to[R,name=R1] (2,0);
\draw[red] (R1.south west) rectangle (R1.north east);
\draw (0.5,-0.5) node[sground] (G1) {};
\draw[red] (G1.south west) rectangle (G1.north east);
\draw (2,-1) node[nmos] (T1) {};
\draw[red,opacity=0.5] (T1.south west) rectangle (T1.north east);
\begin{scope}% local clip
\draw[opacity=0] (3,-1) node[nmos] (T2) {};
\clip (T2.gate) -- (T2.north) -- (T2.inner up) -- (T2.inner down) -- (T2.south) -- cycle;
\draw (T2.center) node[nmos] {};
\end{scope}
\end{circuitikz}
\end{document}