如何通过减少双极长度来减少美国电压源上的 +- 符号?

如何通过减少双极长度来减少美国电压源上的 +- 符号?

我可以减小双极长度,但美国电压源上的 +/- 符号不会变小。我该如何减小它们呢?

\documentclass[border=1.5mm]{standalone}
\usepackage{tikz}
\usepackage[american]{circuitikz}
\begin{document}
\begin{tikzpicture}[>=latex, font=\sffamily, 
  smallckt/.style={circuitikz/bipoles/length=0.9cm},
  ssmallckt/.style={circuitikz/bipoles/length=0.8cm},
  sssmallckt/.style={circuitikz/bipoles/length=0.7cm}
]

\draw (0,0) to [V, invert] (0,2);
\draw (1,0) to [V, invert, smallckt] (1,2);
\draw (2,0) to [V, invert, ssmallckt] (2,2);
\draw (3,0) to [V, invert, sssmallckt] (3,2);

\end{tikzpicture}
\end{document}

在此处输入图片描述

答案1

您可以更改密钥inner plusinner minus内部bipoles/vsourceam

\documentclass[border=1.5mm]{standalone}
\usepackage{tikz}
\usepackage[american]{circuitikz}
\begin{document}
    \begin{tikzpicture}[>=latex, font=\sffamily, 
    smallckt/.style={circuitikz/bipoles/length=0.9cm},
           circuitikz/bipoles/vsourceam/inner plus ={\scriptsize $+$},
           circuitikz/bipoles/vsourceam/inner minus ={\scriptsize $-$},
    ssmallckt/.style={circuitikz/bipoles/length=0.8cm,
           circuitikz/bipoles/vsourceam/inner plus ={\tiny $+$},
           circuitikz/bipoles/vsourceam/inner minus ={\tiny $-$}},
    sssmallckt/.style={circuitikz/bipoles/length=0.7cm,
           circuitikz/bipoles/vsourceam/inner plus ={\tiny $+$},
           circuitikz/bipoles/vsourceam/inner minus ={\tiny $-$}}
    ]
        \draw (0,0) to [V, invert] (0,2);
        \draw (1,0) to [V, invert, smallckt] (1,2);
        \draw (2,0) to [V, invert, ssmallckt] (2,2);
        \draw (3,0) to [V, invert, sssmallckt] (3,2);
        
    \end{tikzpicture}
\end{document}

在此处输入图片描述

相关内容