答案1
这是我按照@Rmano 的建议使用的TikZ
尝试。Circuitikz
Circuitikz
封装仅用于添加电容元件,其加载TikZ
封装。arrows.meta
库用于创建 OUT 元素。shapes
库用于为 PL 元素添加十字形状。
以下是相应的代码(非优化版本):
\documentclass[border=0.2cm]{standalone}
\usepackage{circuitikz}
\usetikzlibrary{arrows.meta,positioning,shapes}
\begin{document}
\begin{tikzpicture}[thick]
\ctikzset{
capacitors/scale=0.7,
capacitors/thickness=0.8,
}
\draw (-4.5,2.5) node[above]{$L_1$} -- ++(0,-5);
\draw (-4.5,2.2) -- ++(0.75,0)node{$\bullet$} -- ++(45:0.5) node[midway,below=0.2cm]{$I/1$}
++(0.1,-0.353)node{$\bullet$} -- ++(0.25,0) edge[dashed] ++(0.5,0)++(0.5,0.3) -- ++(0,-5)node[midway](a){};
\draw (-4.5,0) -- ++(0.75,0)node{$\bullet$} -- ++(45:0.5) node[midway,below=0.2cm]{$I/2$}
++(0.1,-0.353)node{$\bullet$} -- ++(0.25,0) edge[dashed] (a.center);
\draw (a.center) to[C,l=$I/1$] ++(2,0)to[C,l=$I/2$] ++(1.5,0) coordinate(b);
\draw [-{Parenthesis[reversed,scale=3]}] (b) -- ++(0.25,0) node[right=-0.2cm]{OUT} node[above right=0.2cm and -0.1cm]{$O/2$} ;
\draw [{Parenthesis[reversed,scale=3]}-] (b)++(0.9,0) -- ++(0.75,0) coordinate(c);
\draw (c) -- ++(0,2.5)
(c) -- ++(0,-2.5)
(c) -- ++(1.95,0) coordinate(d)
-- ++ (0,2.5) node[above]{$L_2$}
(d) -- ++(0,-2.5);
\path (c) -- (d) node[midway,cross out,draw,minimum size=0.8cm]{};
\path (c) -- (d) node[midway,circle,draw,fill=white](PL){PL};
\draw[dotted,white] (c) -- ++(0.25,0);
\node at (-3.55,3.25){Input};
\node at (3.55,3.25){Output};
\end{tikzpicture}
\end{document}