$R_1$的标记随处可见。
\documentclass[12pt,letterpaper]{article}
\usepackage[left=20mm,top=30mm,bottom=30mm,right=20mm]{geometry}
\usepackage{tikz} % for drawing pictures
\usetikzlibrary{shapes.geometric, arrows}
\usetikzlibrary{arrows.meta}
\usepackage[siunitx]{circuitikz} % circuit package and include electrical units in our labels
\begin{document}
\begin{figure}[H]
\centering
\begin{circuitikz}[american,]
\ctikzset{tripoles/mos style/arrows}
\def\killdepth#1{{\raisebox{0pt}[\height][0pt]{#1}}}
%\path (0,0) -- (2,0); % bounding box
\draw
(-3,9) -- (3,9) node[label=right: $V_{dd} \SI{}{}$] {}
(2,9) to [resistor, a^ = $R_3$] (2,5)
%(M1.gate) -- (3,-1) -- (-3,-1)[short, -] to (-3,0) coordinate (A)
%(-3,1)[short, *-] to (M1.gate)
(2,5) -- (-3,5) to [resistor, a^ = $R_2$] (-3,3)
to (-3,3) [resistor,a^ = $R_1$] (-3,3)
to (-3,1.5) node[ground](GND){}
(2,1) node[nmos] (M1) {$M_1$}
(M1.source) node[] {} -- (2,0) node[ground](GND){} (2,-3)
(2,4)node[nmos] (M2) {$M_2$}
(0,4) node[anchor=east] {$V_{bias}$}[short, o-] to (M2.gate) node[] {}
(M2.source) node[] {} -- (2,2)
(M2.drain) node[right] {} -- (2,5) to [short, *-o, name=S] ++ (2,0) node[right]{$V_{out}$};
\draw (-3,3.25)[short, *-] to (-4,3.25) -- (-4,2) node[ground](GND){};
\draw (5,0) node[ground](GND){} to (5,0) to [I, i_>=$I_{in}$] (5,2) to (2,2)[short, *-*];
%\draw [short, -](5,1) to [short, *-*, name=S] ++(3,0)node[right]{$V_{out}$};
%\draw [short, *-] (-2,0) to [resistor, a = $R_2$] (-2,-3);
%\draw (5,6) to (5,4) node[nmos] (M2) {$M_2$} (5,3) to (5,1);
\end{circuitikz}
\caption{Current-Voltage Feedback After loop break} \label{fig:curr_volt_break_loop}
\end{figure}
\end{document}
我怎样才能去除电路中用红色圈出的那些不必要的 $R_1$ 标记?
答案1
您的代码中存在多个错误。R₁ 问题是由于
to (-3,3) [resistor,a^ = $R_1$] (-3,3)
其中[]
选项不直接应用于to
命令,因此它们对于(子)路径是全局的。删除第一个(顺便说一下,是多余的)坐标,$R_1$ 将与电阻器保持一致。
然后,你就可以在各处使用node [] {}
它,它在这里什么也不做,但可能会创建不需要的空间(请记住节点具有非零大小,请查看手册中的常见问题解答circuitikz
)。
那么,您就没有足够的空间容纳 R₁/R₂。
最后一个图,带有[short, *-*]
而没有to
,再次不正确。
最后,我认为您错过了与 M₁ 排水管的连接。
我做了最小的修正(电路代码可以大大改进),但我不知道这是否是你想要的。
\documentclass[12pt,letterpaper]{article}
\usepackage[left=20mm,top=30mm,bottom=30mm,right=20mm]{geometry}
\usepackage{tikz} % for drawing pictures
\usetikzlibrary{shapes.geometric, arrows}
\usetikzlibrary{arrows.meta}
\usepackage[siunitx]{circuitikz} % circuit package and include electrical units in our labels
\begin{document}
\begin{circuitikz}[american,]
\ctikzset{tripoles/mos style/arrows}
\def\killdepth#1{{\raisebox{0pt}[\height][0pt]{#1}}}
%\path (0,0) -- (2,0); % bounding box
\draw
(-3,9) -- (3,9) node[label=right: $V_{dd} \SI{}{}$] {}
(2,9) to [resistor, a^ = $R_3$] (2,5)
%(M1.gate) -- (3,-1) -- (-3,-1)[short, -] to (-3,0) coordinate (A)
%(-3,1)[short, *-] to (M1.gate)
(2,5) -- (-3,5) to [resistor, a^ = $R_2$] (-3,3)
to [resistor,a^ = $R_1$] (-3,1)
node[ground](GND){}
(2,1) node[nmos] (M1) {$M_1$}
(M1.source) -- (2,0) node[ground](GND){} (2,-3)
(2,4)node[nmos, ] (M2) {$M_2$}
(0,4) node[anchor=east] {$V_{bias}$}[short, o-] to (M2.gate)
(M2.source) -- (2,2)
(M2.drain) -- (2,5) to [short, *-o, name=S] ++ (2,0) node[right]{$V_{out}$};
\draw (-3,3.25)[short, *-] to (-4,3.25) -- (-4,2) node[ground](GND){};
\draw (5,0) node[ground](GND){} to [I, i_>=$I_{in}$] (5,2) to (2,2) -- (M1.D) ;
\end{circuitikz}
\end{document}