导线元件上方出现意外标签

导线元件上方出现意外标签

这里出了什么问题?我该如何摆脱悬停在电线上方的标签 Rs?

\begin{figure}[h!]
\begin{center}
    \begin{circuitikz}
        \draw (-0.5,0) to [short, o-] (0,0);
        \draw (0,0) [R, l=$R_s$] to (2,0) [L, l=L] to (4,0);
        \draw (4,0) to [short, -o] (4.5,0);
        \draw (0,0)--(0,-1) [C, l_=$C_d$] to (4,-1)--(4,0);
    \end{circuitikz}
    \caption[]{Equivalent circuit of a inductor.}
    \label{}
\end{center}
\end{figure}
\FloatBarrier

答案1

也许你正在寻找这样的东西:

在此处输入图片描述

您的代码不匹配。正确的是(观察 的位置to):

\documentclass[border=5mm]{standalone}
\usepackage{circuitikz}

\begin{document}
    \begin{circuitikz}
\draw  (-0.5,0) to [short, o-] (0,0)
                to [R, l=$R_s$] (2,0) 
                to [L, l=L] (4,0)
                to [short, -o] (4.5,0)
       (0,0)--(0,-1) to [C, l_=$C_d$] (4,-1)--(4,0);
    \end{circuitikz}
\end{document}

相关内容