Graphics, Figures & Tablescircuitikz, american inductors. Please help

Information and discussion about graphics, figures & tables in LaTeX documents.
winten1
Posts: 6
Joined: Sun Sep 12, 2010 5:26 pm

circuitikz, american inductors. Please help

Post by winten1 »

Whetever I do it gives me eighter "cuteinductor" or european inductor. I want clasical inductor (with four mountain sagments)

I use:

Code: Select all

\begin{circuitikz}[american inductor]
\draw
(0, 0) to[L] (2, 0)
;
\end{circuitikz}
According to documentation this suppose to give me the inductor i want, but it gives me "cute inductor"

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

circuitikz, american inductors. Please help

Post by gmedina »

Hi,

load the circuitikz package like this:

Code: Select all

\usepackage[americaninductors]{circuitikz}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
winten1
Posts: 6
Joined: Sun Sep 12, 2010 5:26 pm

circuitikz, american inductors. Please help

Post by winten1 »

It gives me error:

Code: Select all

! LaTeX Error: Unknown option `americaninductors' for package `circuitikz'.

However,

Code: Select all

\usepackage[americaninductor]{circuitikz}
(inudctor[S] without s gives no error, but no effect). Although in documentation inductor[s] is with s. Maybe my circuititz is outdated?
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

circuitikz, american inductors. Please help

Post by gmedina »

winten1 wrote:It gives me error:

Code: Select all

! LaTeX Error: Unknown option `americaninductors' for package `circuitikz'.
This shows that your system is using an old version of the package. Update your LaTeX system.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

circuitikz, american inductors. Please help

Post by localghost »

winten1 wrote:Whetever I do it gives me eighter "cuteinductor" or european inductor. I want clasical inductor (with four mountain sagments) […]
It won't draw this kind of symbol. You'll either get a coil (american) or a filled rectangle (european) as symbol for the inductor. This fact is independent of the package version.


Best regards and welcome to the board
Thorsten
winten1
Posts: 6
Joined: Sun Sep 12, 2010 5:26 pm

Re: circuitikz, american inductors. Please help

Post by winten1 »

It does exist, check the manual file:

http://www.ctan.org/tex-archive/graphic ... manual.pdf

Page 11, 4-th from the bottom.

I recently downloaded TexLive 2010 package, is there anything else I need to update?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

circuitikz, american inductors. Please help

Post by localghost »

I recommend to send a note to the package maintainer. As far as I understand the manual, drawing this cute inductor should be default behaviour. It even doesn't work when explicitly setting the necessary options.

Code: Select all

\documentclass{minimal}
\usepackage[%
  cuteinductors,
  americaninductors
]{circuitikz}

\begin{document}
	\begin{circuitikz}
		\draw (0,0) to[L] (2,0);
	\end{circuitikz}
\end{document}
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

circuitikz, american inductors. Please help

Post by gmedina »

localghost wrote:I recommend to send a note to the package maintainer. As far as I understand the manual, drawing this cute inductor should be default behaviour. It even doesn't work when explicitly setting the necessary options.

Code: Select all

\documentclass{minimal}
\usepackage[%
  cuteinductors,
  americaninductors
]{circuitikz}

\begin{document}
	\begin{circuitikz}
		\draw (0,0) to[L] (2,0);
	\end{circuitikz}
\end{document}
Hi, localghost. If you remove the cuteinducors option and keep the americaninductors option then you'll get the kinf of inductor that the OP desires (if I understood his/her requirement correctly).

With this code:

Code: Select all

\documentclass{minimal}
\usepackage[%
  americaninductors
]{circuitikz}

\begin{document}
   \begin{circuitikz}
      \draw (0,0) to[L] (2,0);
   \end{circuitikz}
\end{document}

\end{document} 
I get the attached PDF (using TeX Live2010).
Attachments
a.pdf
(1.24 KiB) Downloaded 397 times
1,1,2,3,5,8,13,21,34,55,89,144,233,...
winten1
Posts: 6
Joined: Sun Sep 12, 2010 5:26 pm

circuitikz, american inductors. Please help

Post by winten1 »

That is exactly what I wanted, thank you very much, however I cannot test this at the moment. I just installed MiKTeX 2.9, and then I click "Typeset" button (compile to PDF) it gives me error.
pdflatex.exe: The memory dump file could not be found.
pdflatex.exe: Data: pdflatex.fmt
I get back to my computer tomorow to test this, very thanks that you uploaded PDF. I do not know how to thank you, you really helped.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

circuitikz, american inductors. Please help

Post by localghost »

gmedina wrote:[…] Hi, localghost. If you remove the cuteinducors option and keep the americaninductors option then you'll get the kinf of inductor that the OP desires (if I understood his/her requirement correctly).[…]
Hm, now I see. It went wrong with version 0.2.2 and I tried this option. Just forgot the update of the MiKTeX system.
Post Reply