答案1
以下是 的解决方案pstricks
。为了使用 进行编译,您应该在 TeX Live 或 MacTeX 下使用开关pdflatex
启动编译,在 MiKTeX 下使用开关启动编译:-shell-escape
--enable-write18
\documentclass[x11names, border=3pt]{standalone}
\usepackage{pstricks-add, pst-circ}
\usepackage{auto-pst-pdf}
\usepackage{fourier}
\pagestyle{empty}
\begin{document}
\psset{dimen=middle, linejoin=1, labeloffset=0}
\begin{pspicture}%
\pnodes(0,0){O}(0,3){A}(2,3){P}(7,3){Q}(9,3){B}(9,0){C}%
(2.5,3.7){A1}(4,3.7){P1}(5,3.7){Q1}(6.5,3.7){B1}%
(2.5,2.3){A2}(4,2.3){P2}(5,2.3){Q2}(6.5,2.3){B2}%
\battery(A)(O){}
\psline(A)(P)(A1)(P)(A2)
\circledipole(A1)(P1){$ x $}\wire(P1)(Q1)\circledipole(Q1)(B1){$y'$}
\circledipole(A2)(P2){$ x' $}\wire(P2)(Q2)\circledipole(Q2)(B2){$y$}
\psline(B1)(Q)(B2)(Q)(B)
\Ucc[dipolestyle=normalCei, labeloffset=4.5pt](B)(C){\rotateright{$ \Omega $}}
\wire(C)(AQ)
\end{pspicture}
\end{document}
答案2
使用 circuitiz/tikz 有很多方法可以做到这一点。我认为右边的符号应该是灯泡。(我可以轻松创建一个。)
\documentclass{standalone}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}[european]
\draw[thick] (1,2) -- (0,2) to[battery1] (0,0);
\node[draw,circle,name=x] at (2,3) {\strut $x$};
\node[draw,thin,circle,name=xp] at (2,1) {\strut $x'$};
\node[draw,circle,name=yp] at (4,3) {\strut $y'$};
\node[draw,circle,name=y] at (4,1) {\strut $y$};
\draw[thick] (1,2) -- (x) -- (yp) -- (5,2);
\draw[thick] (1,2) -- (xp) -- (y) -- (5,2);
\draw[thick] (5,2) -- (6,2) -- (6,0) -- (0,0);
\node[draw,circle] at (6,1) {\strut};
\node[rotate=-90,above,inner sep=0pt] at(6,1) {$\Omega$};
\end{circuitikz}
\end{document}