如何在 Tikz 中移除或最小化电阻的端子?

如何在 Tikz 中移除或最小化电阻的端子?

有什么办法可以去除电阻端子的延伸吗?

\begin{circuitikz}
\ctikzset{tripoles/mos style/arrows}
\draw
(0,0)     node[nmos] (nmos2) {}  node[right] at (nmos2) {M2}
(-3.5,0)  node[nmos, xscale=-1] (nmos1) {}  node[left] at (nmos1) {M1}

(nmos2.G) to[short] ++(-0.5,0) to[R,l=$R \SI{=1}{\kilo\ohm}$,n=R1] ++(-1,0)      
to (nmos1.G)

(nmos2.D) to[short] ++(0,0.5)
 node[inputarrow,rotate=270] {} node [right,]{$i_{OUT}$} to[short] ++(0,0.5)

(nmos1.D) to[short] ++(0,0.5)
node[inputarrow,rotate=270] {} node [left,]{$i_{IN}$}  to[short] ++(0,0.5)

(nmos1.S) to[short] ++(0,-0.5) -| (nmos2.S) ++(-1.75,-0.5) node[sground] {} 
(nmos1.D) node[circ] {} -| (nmos2.G) node[circ] {}
;
\end{circuitikz}

在此处输入图片描述

答案1

从回答开始你的问题在这里回答这个问题其实只需要很小的一步:

\documentclass{article}
\usepackage{circuitikz}
\usetikzlibrary{positioning}

\usepackage[active,tightpage]{preview}
\PreviewEnvironment{circuitikz}
    \setlength\PreviewBorder{1em}

\begin{document}

\begin{circuitikz}[node distance = 8mm and 0mm]
\ctikzset{tripoles/mos style/arrows}
%
\draw (0,0) node (nmos1) [nmos, xscale=-1, label=left:M1]  {}
(nmos1.G)   to[R=$R_1$,-*] ++ (1.5,0)
            node (nmos2) [nmos,right,label=right:M2] {}
coordinate[above=of nmos1.D] (in)
coordinate[above=of nmos2.D] (out)
(in)    to[short,o-*, i=$i_{IN}$]    (nmos1.D)
(out)   to[short,o- , i=$i_{OUT}$]   (nmos2.D)
(nmos1.D) -| (nmos2.G)
;
\end{circuitikz}

\end{document}

在此处输入图片描述

请以后考虑我上面的评论!

相关内容