I use:
Code: Select all
\begin{circuitikz}[american inductor]
\draw
(0, 0) to[L] (2, 0)
;
\end{circuitikz}
Code: Select all
\begin{circuitikz}[american inductor]
\draw
(0, 0) to[L] (2, 0)
;
\end{circuitikz}
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
Code: Select all
\usepackage[americaninductors]{circuitikz}
Code: Select all
! LaTeX Error: Unknown option `americaninductors' for package `circuitikz'.
Code: Select all
\usepackage[americaninductor]{circuitikz}
This shows that your system is using an old version of the package. Update your LaTeX system.winten1 wrote:It gives me error:Code: Select all
! LaTeX Error: Unknown option `americaninductors' for package `circuitikz'.
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.winten1 wrote:Whetever I do it gives me eighter "cuteinductor" or european inductor. I want clasical inductor (with four mountain sagments) […]
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).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}
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 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.pdflatex.exe: The memory dump file could not be found.
pdflatex.exe: Data: pdflatex.fmt
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.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).[…]
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