
회로 그리기를 위해 circuitikz
분기되는 패키지를 사용하고 있습니다 . TikZ
다음 코드가 있습니다.
\begin{circuitikz}
\draw (4,3)
to[short](4,4)
to[R=$R_2$,v_>=$v_2$](0,4)
to[short](0,0)
to[battery=$V_S$](8,0)
to[short](8,3)
to[R=$R_3$,v_>=$v_3$](4,3)
to[short](4,2)
to[R=$R_1$,v_>=$v_1$](0,2)
;
\end{circuitikz}
이는 다음을 생성합니다.
하지만 저는 그런 지점에 원으로 표시된 라벨을 배치할 수 있었으면 좋겠습니다.
답변1
서킷틱즈이다tikz에는 추가 모양이 많이 정의되어 있습니다. OTOH는 to
가장자리에 주의를 기울이지 않으므로 앵커 포인트를 지정해야 합니다.
\documentclass[border=10pt]{standalone}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}
\node[draw,circle] (A) at (4,4) {A};
\node[draw,circle] (B) at (8,3) {B};
\draw (4,3)
to[short] (A.south)
(A.west) to[R=$R_2$,v_>=$v_2$](0,4)
to[short](0,0)
to[battery=$V_S$](8,0)
to[short](B.south)
(B.west) to[R=$R_3$,v_>=$v_3$](4,3)
to[short](4,2)
to[R=$R_1$,v_>=$v_1$](0,2)
;
\end{circuitikz}
\end{document}
개인적으로 나는 다음과 같이 갔을 것입니다.
\documentclass[border=10pt]{standalone}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}
\draw (4,3)
to[short,-o] (4,4) node[above] {A}
to[R=$R_2$,v_>=$v_2$](0,4)
to[short](0,0)
to[battery=$V_S$](8,0)
to[short,-o](8,3) node[above] {B}
to[R=$R_3$,v_>=$v_3$](4,3)
to[short](4,2)
to[R=$R_1$,v_>=$v_1$](0,2)
;
\end{circuitikz}
\end{document}