Circuitikz 中標記的圓點

Circuitikz 中標記的圓點

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}

第二個演示

相關內容