不使用示波器是否可以旋转变压器?代码:
\documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage[siunitx]{circuitikz}
\begin{document}
\begin{circuitikz}
\draw
(0,0) node [transformer](t1){}
(0,-3.5) node [transformer, rotate = 30](t2){}
;
\begin{scope}[shift = {(3.5,-1.75)}, rotate=30, transform shape]
\draw
(0,0) node [transformer](t3){}
;
\end{scope}
\draw
(t1.B1) to [R]
++(right:2)
(t2.B1) to [R]
++(right:2)
(t3.B1) to [R]
++(right:2)
;
\end{circuitikz}
\end{document}
输出:
答案1
抱歉。我从这里。然后我意识到“变换形状”这个词。然后我尝试将其作为直接参数,并且成功了。代码:
\documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage[siunitx]{circuitikz}
\begin{document}
\begin{circuitikz}
\draw
(0,0) node [transformer](t1){}
(0,-3.5) node [transformer, rotate = 30](t2){}
(3.5,-1.75) node [transformer, rotate = 30, transform shape](t3){}
;
\draw
(t1.B1) to [R]
++(right:2)
(t2.B1) to [R]
++(right:2)
(t3.B1) to [R]
++(right:2)
;
\end{circuitikz}
\end{document}
输出: