Graphics, Figures & TablesMaking Circuit Diagrams

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
fayez
Posts: 13
Joined: Mon Dec 21, 2009 12:00 am

Making Circuit Diagrams

Post by fayez »

Hello,

I have been trying to reproduce this example
http://www.texample.net/tikz/examples/circuitikz/
with no success.
I think my main problem is installing the Tikz package which I tried to install it a few times with no success, anyone out there can explain or know how to install it. I downloaded the package from the source above and also from
http://www.ctan.org/tex-archive/help/Ca ... s/pgf.html

and I am not sure where to put them or how its called from TXC other than \usepackage{tikz}


Thanks

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

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: Making Circuit Diagrams

Post by Stefan Kottwitz »

Hi,

I guess you're using MiKTeX. In that case install the pgf package using the MiKTeX package manager: Start/MiKTeX/Browse packages. pgf contains TikZ.
\usepackage{tikz} is ok but \usepackage[symbols]{circuitikz} is needed too.

Stefan
LaTeX.org admin
fayez
Posts: 13
Joined: Mon Dec 21, 2009 12:00 am

Re: Making Circuit Diagrams

Post by fayez »

thanks Stefan,
but I am not really sure what you are directing me to, because I opened the MiKTeX and found the pgf but whats the point?
when I run that code on TXC it gives me errors because of the errors shown on the attached pdf file... any idea how to fix it ?

sorry I am new to this :?
Thanks
Attachments
error2.pdf
Error Output .pdf
(107.09 KiB) Downloaded 320 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Making Circuit Diagrams

Post by localghost »

You better attach the complete log file instead of this unhelpfully low quality picture which only shows a small section. Image files in several formats can also be uploaded to the forum server without the unnecessary conversion to PDF.

Make sure that you correctly installed the pgf package. You can check that by looking at the »Installed on« column in the MiKTeX Package Manager. In the MiKTeX Options you can also choose to install required packages »on the fly«.


Best regards
Thorsten
fayez
Posts: 13
Joined: Mon Dec 21, 2009 12:00 am

Making Circuit Diagrams

Post by fayez »

I installed everything as downloaded from LateX project and I have had no problems except when I copy & paste the code of the circuit I get those errors,
I just checked the *Install on* seems to be installed correctly see the image packages.jpg , I also attached the log file (Thanks for that!).

Fayez
Packages from MiKTeX
Packages from MiKTeX
packages.jpg (166.09 KiB) Viewed 4819 times
Attachments
cir.log
Log File
(12.91 KiB) Downloaded 325 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Making Circuit Diagrams

Post by localghost »

Your version of pgf is out of date. Update your MiKTeX System or at least the concerned package.
fayez
Posts: 13
Joined: Mon Dec 21, 2009 12:00 am

Re: Making Circuit Diagrams

Post by fayez »

Thanks very much, its working now. although with too many errors but at least I have something to work with.

Fayez
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Making Circuit Diagrams

Post by localghost »

It is strongly recommendable to fix all occurring errors before continuing with the document.
Post Reply