简单的绘图……但我不知道如何将电路连接点与运算放大器输入对齐,除非我通过手动调整来弄虚作假。有没有办法自动做到这一点?(并使连接点更小?)
\documentclass{standalone}
\usepackage{circuitikz}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[american, font=\sffamily]
\ctikzset{bipoles/resistor/height=0.1}
\ctikzset{bipoles/resistor/width=0.3333}
\node[nigbt](qcl) at (0,2.5) {};
\node[op amp, yscale=-1](u1) at (2,0.75) {};
\draw
(0,0) to [R=$R_s$](0,1.5) to (qcl.E)
(u1.-) to [short, -*] (0,0.3)
(u1.+) to [short, -*] (0,1.2)
;
\end{tikzpicture}
\end{document}
答案1
啊哈,我想出了另一种方法,不尝试使用-*
语法,而是手动使用以下方法对齐圆圈-|
:
\documentclass{standalone}
\usepackage{circuitikz}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[american, font=\sffamily]
\ctikzset{bipoles/resistor/height=0.1}
\ctikzset{bipoles/resistor/width=0.3333}
\node[nigbt](qcl) at (0,2.5) {};
\node[op amp, yscale=-1](u1) at (2,0.75) {};
\draw
(0,0) to [R=$R_s$](0,1.5) to (qcl.E)
(u1.-) -| (0,0.3)
(u1.+) -| (0,1.2)
;
\fill (u1.- -| 0,0) circle [radius=1.5pt];
\fill (u1.+ -| 0,0) circle [radius=1.5pt];
\end{tikzpicture}
\end{document}
答案2
绘制垂直线的方法不止一种。
\documentclass{standalone}
\usepackage{circuitikz}
\begin{document}
\begin{tikzpicture}[american, font=\sffamily]
\ctikzset{bipoles/resistor/height=0.1}
\ctikzset{bipoles/resistor/width=0.3333}
\node[nigbt](qcl) at (0,2.5) {};
\node[op amp, yscale=-1](u1) at (2,0.75) {};
\draw
(0,0) to [R=$R_s$,n=R1] (0,1.5) -- (qcl.E)
(u1.-) to [short, -*] (u1.- -| R1)
(u1.+) -- (u1.+ -| R1) node[circ]{}
;
\end{tikzpicture}
\end{document}