使用 circuitikz 进行标记和对齐

使用 circuitikz 进行标记和对齐

在以下电路中circuitikz,怎样才能使地面和天线垂直线对齐(即画在同一个横坐标上)?

另外,如何修复地面和天线组件的标签,以便标签保持在组件的左侧?

\documentclass{standalone}
\usepackage[american voltages]{circuitikz}

\begin{document}

\begin{circuitikz}[]
  \draw
    (0,0.8) node [ground] (A) {}
    to [short] (0,1)
    to [short] (6,1)
    to [R=$R$,v>=$V_R$] (6,4)
    to [C=$C$] (3,4)
    to [L=$L$] (1,4) node [antenna,xscale=-1,] (B) {}
    (0,1) to [open,v>=$V_0$] (0,4)
    (A) -- node [anchor=east] {Terra} (A)
    (B) -- node [anchor=east] {Antena} (B)
    ;
\end{circuitikz}

\end{document}

电路

答案1

\documentclass{standalone}
\usepackage[american voltages]{circuitikz}

\begin{document}

\begin{circuitikz}[]
  \draw
    (0,0.8) node [ground] (A) {} node [anchor=east] {Terra}
    to [short] (0,1)
    to [short] (6,1)
    to [R=$R$,v>=$V_R$] (6,4)
    to [C=$C$] (3,4)
    to [L=$L$] (1,4) node [antenna,xscale=-.7,] (B) {} node [left=3em,above=2em,anchor=east] {Antena}
    (0,1) to [open,v>=$V_0$] (0,4)
    ;
\end{circuitikz}

\end{document}

在此处输入图片描述

相关内容