사전 정의된 변압기 코어의 수직 크기를 어떻게 늘릴 수 있습니까?
\documentclass[11pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
\usepackage{mathrsfs}
\usepackage[english]{babel}
\usepackage{circuitikz}
\usepackage{tikz} % for flowcharts
%\usepackage[latin1]{inputenc}
\usetikzlibrary{shapes.geometric, arrows, shapes.arrows,decorations.pathmorphing, matrix,chains,scopes,positioning,fit,shapes.gates.logic.US, shapes.gates.logic.IEC, calc, decorations.markings,arrows.meta,bending}
\usepackage{textcomp} % avoid the warning from gensymbol's package
\begin{document}
\begin{center}
\begin{tikzpicture}[baseline=(current bounding box.center)]
\draw (0,0)
to[short,o-] (1,0)
to[R] (2.5,0)
to[L] (4,0)
to[short,-*] (5.5,0)
-- (7,0)
(8,0) node[transformer core] (T) {} (T.B1) -- (9.5,0)
to[L] (11,0)
to[R] (12.5,0)
to [short,-o] (13.5,0)
(5.5,0) -- (5.5,-0.4)
-- (5.9, -0.4)
to[L] (5.9,-1.9)
-- (5.5,-1.9)
-- (5.5,-2.3);
\end{tikzpicture}
\end{center}
\end{document}
답변1
당신은 다음과 같은 것을 사용할 수 있습니다
node[transformer core,yscale=2] (T)
또는
node[transformer core,yscale=2,transform shape] (T)
그러나 변환기를 확장하는 대신 다른 접근 방식을 제안합니다.
\documentclass[11pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
\usepackage{mathrsfs}
\usepackage[english]{babel}
\usepackage{circuitikz}
\usepackage{tikz} % for flowcharts
%\usepackage[latin1]{inputenc}
\usetikzlibrary{shapes.geometric, arrows, shapes.arrows,decorations.pathmorphing, matrix,chains,scopes,positioning,fit,shapes.gates.logic.US, shapes.gates.logic.IEC, calc, decorations.markings,arrows.meta,bending}
\usepackage{textcomp} % avoid the warning from gensymbol's package
\begin{document}
\begin{center}
\begin{tikzpicture}[baseline=(current bounding box.center)]
\draw (0,0)
to[short,o-] (1,0)
to[R] (2.5,0)
to[L] (4,0)
to[short,-*] (5.5,0)
-- (7,0)
(8,0) node[transformer core] (T) {} (T.B1) -- (9.5,0)
to[L] (11,0)
to[R] (12.5,0)
to [short,-o] (13.5,0)
(5.5,0) |-
([shift={(10pt,-10pt)}]5.5,0)
to[L]
([shift={(10pt,10pt)}]5.5,0|-T.A2) -|
(5.5,0|-T.A2) --
(T.A2);
\end{tikzpicture}
\end{center}
\end{document}
결과: