答案1
\documentclass[margin=3mm]{standalone}
\usepackage{circuitikz}
\usepackage{amsmath} % <---
\newcommand\ds{\displaystyle} % <---
\begin{document}
\begin{circuitikz}[scale=3, european]
\draw (0,1) to [R=$R$] ++ (1,0)
to [L=$L$] ++ (1,0)
to [C=$C$] ++ (1,0)
to [short,i=$i(t)$] ++ (0,-1)
to [twoport,t=\Large $G$,
l={$\xrightarrow[\ds u_e(t)]{}$}] (0,0) % <---
-- (0,1);
\end{circuitikz}
\end{document}
给出:
附录:
如果您希望将电路元件放在相对侧,那么您可以这样写:
\draw (0,1) to [R,a=$R$] ++ (1,0)
to [L,a=$L$] ++ (1,0)
to [C,a=$C$] ++ (1,0)
to [short,i=$i(t)$] ++ (0,-1)
to [twoport,t=\Large $G$,
l={$\xrightarrow[\ds u_e(t)]{}$}] (0,0) % <---
-- (0,1);
或者
\draw (0,1) to [R,l_=$R$] ++ (1,0)
to [L,l_=$L$] ++ (1,0)
to [C,l_=$C$] ++ (1,0)
to [short,i=$i(t)$] ++ (0,-1)
to [twoport,t=\Large $G$,
l={$\xrightarrow[\ds u_e(t)]{}$}] (0,0) % <---
-- (0,1);
两种情况下的结果都是一样的:
答案2
我现在解决了块内的 G 问题,但我无法绘制矢量 u_e(t),
to [twoport,t=\Large $G$] (0,0)