TeX - LaTeX Asked on May 21, 2021
Using circuitikz I am trying to get an americaninductor with a line next to it representing a core. Or said differently, I want something like a cute choke but with the coil looking like an americaninductor (semi-circles). Something like the second inductor (FeSi Core inductor)
Is this possible? My code is as follows:
documentclass{article}
usepackage[europeanresistors,americaninductors]{circuitikz}
begin{document}
begin{circuitikz}
draw (0,-2)node[left] {} to [short,o-] (0,0)
to [short,-*] (1,0);
draw [thick](1,0)-- +(30:0.89);
draw (1.9,0) to[short,*-*](3,0)
to [resistor](3,-3)
to [lamp](3,-4)
to [short,-*](3,-5)
to (0,-5)
to [short,-o] (0,-3);
draw (3,0) to (5,0)
to [L] (5,-3)
to [lamp](5,-4)
to (5,-5)
to (3,-5);
end{circuitikz}
end{document}
This should have happened before or after... ok, if you look at the manual, current version, page 45:
and the rationale is... I don't know. Probably it could be a reasonable feature request for the package, please feel free to add it. I will have a look to see if it's difficult to incorporate.
From now you can just add the line after-the-fact:
documentclass[border=10pt]{standalone}
usepackage{circuitikz}
begin{document}
begin{tikzpicture}[]
draw (0,1) to [cute choke=$L_1$] ++(3,0);
draw (0,0) to [american inductor=$L_2$, name=l] ++(3,0);
draw [thick]([yshift=1pt]l.north west) -- ([yshift=1pt]l.north east);
end{tikzpicture}
end{document}
Since v1.3.3 (not yet released on 2021-04-01) you will be able to use
draw (0,0) to [american inductor=$L_2$, name=l] ++(3,0);
draw [thick](l.core west) -- (l.core east);
so you will have no problems with rotations.
Correct answer by Rmano on May 21, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP