![如何将电路连接点与运算放大器输入对齐?(并且更小)](https://linux22.com/image/332946/%E5%A6%82%E4%BD%95%E5%B0%86%E7%94%B5%E8%B7%AF%E8%BF%9E%E6%8E%A5%E7%82%B9%E4%B8%8E%E8%BF%90%E7%AE%97%E6%94%BE%E5%A4%A7%E5%99%A8%E8%BE%93%E5%85%A5%E5%AF%B9%E9%BD%90%EF%BC%9F%EF%BC%88%E5%B9%B6%E4%B8%94%E6%9B%B4%E5%B0%8F%EF%BC%89.png)
简单的绘图……但我不知道如何将电路连接点与运算放大器输入对齐,除非我通过手动调整来弄虚作假。有没有办法自动做到这一点?(并使连接点更小?)
\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}