我想画一个解析器,但我不知道如何做circuitikz
,任何帮助都值得感激。
\begin{circuitikz} \draw
(0,0) node[transformer] (T) {}
(T.A1) node[anchor=east] {A1}
(T.A2) node[anchor=east] {A2}
(T.B1) to[L] (3,0) |- (T.B2)
(T.B2) node[anchor=west] {B2}
(T.base) node{K}
;\end{circuitikz}
编辑1:
\begin{circuitikz} \draw
(0,0) node[transformer] (T) {}
(T.A1) node[anchor=east] {A1}
(T.A2) node[anchor=east] {A2}
(T.B1) to[short] (2,0)
to [L, l=$Rotor$] (4, -2.0)
to [short] (4,-2.1)
to [short] (T.B2)
(T.base) node{K}
[short] (7,0)
to [short] (5,0)
to [L, l =$Cos$] (5,-2)
to [short] (7,-2)
[short] (2,-5)
to [short] (2,-3)
to [L, l =$Sin$] (4,-3)
to [short] (4,-5)
;\end{circuitikz}
答案1
您可以使用 circuitikz 中的所有 tikz 命令。
\documentclass{standalone}
\usepackage{circuitikz}
\usetikzlibrary{calc}
\begin{document}
\begin{circuitikz} \draw
(0,0) node[transformer] (T) {}
(T.A1) node[anchor=east] {A1}
(T.A2) node[anchor=east] {A2}
(T.B1) to[short] (2,0)
to [L, l=\textit{Rotor}] (4, -2.0)
to [short] (4,-2.1)
to [short] (T.B2)
(T.base) node{K}
[short] (7,0)
to [short] (5,0)
to [L, l =\parbox{3cm}{Stator\\ K Ref Cos $\theta$}] (5,-2)
to [short] (7,-2)
[short] (2,-5)
to [short] (2,-3)
to [L, l_=\parbox{1cm}{Stator\\ K Ref\\ Sin $\theta$}] (4,-3)
to [short] (4,-5);
\draw[dashed] (4.1,-2) -- ($(4.1,-2)!1.2!(2.1,0)$)
node[above,text width=2cm] {Rotor Shaft Angle ($\theta$)}
(4.1,-2) -- (4.1,1);
\draw[->] (4.1,1) arc[start angle=90, end angle=135, radius=3]
node[midway,below right] {$\theta$};
\draw[<-] (T.south) -- ++(0,-0.5) node[below,text width=3cm] {Used in brushless resolvers only};
\end{circuitikz}
\end{document}