Circuitikz를 기반으로 한 상대 좌표를 사용하여 Circuitikz 회로 내부에 tikz그림을 어떻게 삽입합니까?

Circuitikz를 기반으로 한 상대 좌표를 사용하여 Circuitikz 회로 내부에 tikz그림을 어떻게 삽입합니까?

특히 이 회로의 두 열린 끝(R1과 접지 사이) 사이에 직사각형을 삽입하고 싶습니까?

\documentclass[border=10pt]{standalone}
\usepackage[american,siunitx,smartlabels]{circuitikz}

\ctikzset{bipoles/ammeter/text rotate/.initial=0, rotation/.style={bipoles/ammeter/text rotate=#1},
}

\begin{document}

\begin{circuitikz}
\draw (0,0)
node[transformer,yscale=1.2] (T) {}
(T.B1) to [D,l=Diode] (3,|-T.B1)
to [R,l=3.3 <\kilo\ohm>] (3,|-T.B2)
-- (T.B2)
-- (12,|-T.B2);


\ctikzset{bipoles/resistor/height =0.3}
\draw (3,|-T.B1)
to [vR,l=$R_1{=} 0 $] (6,|-T.B1)
to (6,-0.2)
(12,|-T.B2) node [below=1pt]{X-Channel}
(6,|-T.B1) to [short,-*] ++(2,0) node [right=2pt]{Y-Channel}
(6,-1) to [short] ++ (2.2,0) node [ground,xscale=0.5,yscale=0.7] {}
(T) node [right=15pt,below=30pt,rotate = 90] {$\SI{9}\volt_{rms}$}
;
\end{circuitikz}
\end{document}

여기에 이미지 설명을 입력하세요

답변1

이와 같이?

\documentclass[border=10pt]{standalone}
\usepackage[american,siunitx,smartlabels]{circuitikz}

\ctikzset{bipoles/ammeter/text rotate/.initial=0, rotation/.style={bipoles/ammeter/text rotate=#1},
}

\begin{document}

\begin{circuitikz}
\draw (0,0)
node[transformer,yscale=1.2] (T) {}
(T.B1) to [D,l=Diode] (3,|-T.B1)
to [R,l=3.3 <\kilo\ohm>] (3,|-T.B2)
-- (T.B2)
-- (12,|-T.B2);


\ctikzset{bipoles/resistor/height =0.3}
\draw (3,|-T.B1)
to [vR,l=$R_1{=} 0 $] (6,|-T.B1)
to (6,-0.2)
(12,|-T.B2) node [below=1pt]{X-Channel}
(6,|-T.B1) to [short,-*] ++(2,0) node [right=2pt]{Y-Channel}
(6,-1) to [short] ++ (2.2,0) node [ground,xscale=0.5,yscale=0.7] {}
(T) node [right=15pt,below=30pt,rotate = 90] {$\SI{9}\volt_{rms}$}
(6,-0.9) rectangle +(2,0.6)
;
\end{circuitikz}
\end{document}

여기에 이미지 설명을 입력하세요

관련 정보