该代码在两个开放的终端上用箭头创建一个电压降:
\documentclass{article}
\usepackage[european,siunitx]{circuitikz}
\usetikzlibrary{arrows,calc,positioning}
\begin{document}
\pagenumbering{gobble} % Remove the page numbering
\ctikzset{bipoles/thickness=1}
\begin{circuitikz}[european, line width=0.8pt]
\draw (0,0)
to [short] (1,0)
to [open, v^>=$v_{A}$, *-*, european voltages] (2,0)
to [short] (3,0);
\end{circuitikz}
\end{document}
问题:箭头离端子太近。
如何将箭头向上抬起?
答案1
该open
组件具有宽度和高度,但它太宽,无法放入给定的空间,从而扰乱电压程序。
\documentclass{standalone}
\usepackage[european,siunitx]{circuitikz}
%\usetikzlibrary{arrows,calc,positioning}
\begin{document}
%\pagenumbering{gobble} % Remove the page numbering
\ctikzset{bipoles/thickness=1}
\ctikzset{bipoles/open/width=.4}
\begin{circuitikz}[european, line width=0.8pt]
\draw (0,0)
to [short] (1,0)
to [open, v^>=$v_{A}$, *-*,n=test] (2,0)
to [short] (3,0);
\draw[red] (test.ne) -- (test.nw) -- (test.sw) -- (test.se) -- cycle;
\end{circuitikz}
\end{document}