
텍스트 위의 다이어그램은 다음과 같습니다. 이것이 내가 지금까지 해왔던 일이지만 이것을 재현하는 데 어려움을 겪고 있습니다.
\begin{circuitikz}
\draw
(0, 0) node[op amp] (opamp) {}
(opamp.-) to[R,l_=$R_1$,-o] (-2, 0.35) -- (-3, 0.35) to [V=$v_1$] (-3,-0.5) to (-3,-0.5) node[ground]{}
(opamp.-) to[short,*-] ++(0,0.5) coordinate (leftC)
to[R=$R_2$] (leftC -| opamp.out)
to[short,-*] (opamp.out) to [short,-o] (1.5,0) to (1.5,-0.5) node[ground]{}
(opamp.+) -- (-1,-0.35) to (-1,-0.5) node[ground]{}
;
\end{circuitikz}
답변1
이는 MWE의 정리된 버전으로 상대 좌표에 대한 보다 완벽한 약속을 제공합니다. 아아, 그것은 그려진 회로와 완전히 다른 회로입니다.
\documentclass {standalone}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}
\draw
(0, 0) node[op amp] (opamp) {}
(opamp.-) to[R,l_=$R_1$,-o] ++(-2, 0) to [V=$v_1$] ++(0,-2) node[ground]{}
(opamp.-) to[short,*-] ++(0,1) coordinate (leftC)
to[R=$R_2$] (leftC -| opamp.out)
to[short,-*] (opamp.out) to [short,-o] (1.5,0) to (1.5,-0.5) node[ground]{}
(opamp.+) -- ++(0,-0.5) node[ground]{}
;
\end{circuitikz}
\end{document}
답변2
siunitx
수량 작성 옵션, 회로 요소 위치 지정을 위한 상대 좌표 사용 , 연산 증폭기 입력 및 앵커 및 americano
구동 스타일 정의:
\documentclass[border=3.131592]{standalone}
\usepackage[siunitx]{circuitikz}
\begin{document}
\begin{circuitikz}[american]
\draw (0,0) to[R,l=\qty{12}{\kilo\ohm}] ++(2,0) coordinate[label=$V_1$] (in+)
to[short,i=$i_1$, *-] ++(1,0)
node[op amp,
noinv input up,
anchor=+] (oa) {}
(in+ |- oa.-) coordinate[label=$V_2$] (in-)
to[short,i=$i_2$, *-] (oa.-)
(oa.out) to[short,*-o] ++(2, 0) coordinate (out+)
(oa.out) to[R,l=\qty{15}{\kilo\ohm},-*] ++(0,-2) coordinate (aux1)
to[R,l=\qty{15}{\kilo\ohm},-*] ++(0,-2)
to[short] ++(2, 0) coordinate (out-)
to[open, v=$V_o$, o-o] (out+)
(in-) |- (aux1)
(0,0) to[V,a=\qty{12}{\volt}] (0,0 |- out-)
-- (out-)
;
\end{circuitikz}
\end{document}