2

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) enter image description here

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}
5
  • is this what u want -- tex.stackexchange.com/questions/530609/…
    – js bibra
    Commented Mar 29, 2021 at 14:24
  • @jsbibra Not sure what I am looking at, but I guess not. I want an americaninductor (coil represented by semicircles) with a line next to it. I added a picture. Commented Mar 29, 2021 at 14:26
  • wheres the picture
    – js bibra
    Commented Mar 29, 2021 at 14:29
  • @jsbibra pic should be there now Commented Mar 29, 2021 at 14:33
  • 1
    If you move the label to the opposite side, you will have plenty of room to add lines. The solenoid is trickier, but doable (see tex.stackexchange.com/questions/584424/…) Commented Mar 29, 2021 at 16:00

2 Answers 2

3

This should have happened before or after... ok, if you look at the manual, current version, page 45:

enter image description here

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}

enter image description here

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.

0
0

Like this ?

enter image description here

In this case, use to [cute choke] (5, -3) instead of to [L] (5, -3)

With the option twolineschoke like to [cute choke, twolineschoke ] (5, -3) you obtain

enter image description here

1
  • Unfortunately not what I am looking for. I added a picture to my question. Commented Mar 29, 2021 at 14:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .