答案1
一个想法可以用来short
支持箭头:
\documentclass[border=10pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{tikzpicture}[]
\draw (0,0) to[short, o-, i=$i(t)$] ++(0.5,0)
to[generic] ++(1.5,0)
to[short, -o, i=$i(t)$] ++(0.5,0);
\end{tikzpicture}
\end{document}
您可以对箭头进行微调(尽管在某种程度上是视觉上的):
\documentclass[border=10pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{tikzpicture}[]
\tikzset{ipos/.style={/tikz/circuitikz/current/distance=#1}}
\draw (0,0) to[short, o-, i=$i(t)$, ipos=0.8] ++(0.5,0)
to[generic] ++(1.5,0)
to[short, -o, i=$i(t)$, ipos=0.2] ++(0.5,0);
\end{tikzpicture}
\end{document}