有什么办法可以移动 + 和 - 号,使它们之间的距离稍微远一点吗?
\documentclass{standalone}
\usepackage[siunitx]{circuitikz}
\begin{document}
\begin{circuitikz}[american]
\draw (0,0) to[/tikz/circuitikz/bipoles/length=0.6cm, D*, v^=$v_g$] (2,0)
node [right] {\tiny\verb|default|};
\draw (0,1) to[/tikz/circuitikz/bipoles/length=0.6cm, D*, v^=$v_g$,label/align=rotate] (2,1)
node [right] {\tiny\verb|label/align=rotate|};
\draw (0,2) to[/tikz/circuitikz/bipoles/length=0.6cm, D*, v^=$\quad v_g$] (2,2)
node [right] {\tiny\verb|\quad|};
\end{circuitikz}
\end{document}
答案1
通过查看源代码自己解决了另一个问题......
这是/tikz/circuitikz/voltage/distance from node
(哎呀,我希望这些都被记录下来)
\documentclass{standalone}
\usepackage[siunitx]{circuitikz}
\begin{document}
\begin{circuitikz}[american]
\draw (0,0) to[/tikz/circuitikz/bipoles/length=0.6cm, D*, v^=$v_g$] (2,0)
node [right] {\tiny\verb|default|};
\draw (0,1) to[/tikz/circuitikz/bipoles/length=0.6cm,
/tikz/circuitikz/voltage/distance from node=0.2cm,
D*, v^=$v_g$] (2,1)
node [right] {\tiny\verb|/tikz/circuitikz/voltage distance from node|};
\end{circuitikz}
\end{document}