如何摆脱信号源的极性符号?

问题描述 投票:-1回答:1

我的代码

\documentclass[11pt,twoside]{report}
\usepackage[american]{circuitikz}

\begin{document}
\begin{circuitikz}
\draw
(0,0)
    to[sV, v<=$V$] ++(0,2.5)
    to[R, l=$R$,i=$i$,-o] ++(3.5,0)
    to[open, v^=$~~U$] ++(0,-2.5)
    to[short,-o] ++(0,0)
    --(0,0)
;
\end{circuitikz}

\end{document}

给我

enter image description here

我想要

enter image description here

如何从电压源去除极性标志?

latex pdflatex
1个回答
0
投票
\documentclass{standalone}

\usepackage[
american,
]{circuitikz}

\ctikzset{voltage/american plus/.initial={}}
\ctikzset{voltage/american minus/.initial={}}

\begin{document}

\begin{circuitikz}[]
\draw
(0,0)
    to[sV, v<=$V$] ++(0,2.5)
    to[R, l=$R$,i=$i$,-o] ++(3.5,0)
    to[open, v^=$~~U$] ++(0,-2.5)
    to[short,-o] ++(0,0)
    --(0,0)
;
\end{circuitikz}

\end{document}

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.