ラベル付き円 回路内のポイント

ラベル付き円 回路内のポイント

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 では、多くの追加の図形が定義されています。一方、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}

2番目のデモ

関連情報