Graphics, Figures & TablesCircuit Diagrams

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
New to TeX
Posts: 4
Joined: Sun Jun 10, 2012 10:53 am

Circuit Diagrams

Post by New to TeX »

I recently came across Circuit_Macros to draw high quality circuit diagrams, is there anyway to integrate this into MiKTeK on a windows 7 platform? I am fairly new to this so take it easy :)

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: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Circuit Diagrams

Post by Stefan Kottwitz »

Hi,

welcome to the board!

Sure, it can be installed on MiKTeX. You need to install m4, dpic, and that macro collection. It's described here, also regarding MiKTeX 2.9 on Windows 7: M4 Circuit Macros - Installation.

Do you really need Circuit_Macros or do you just want to try it? Perhaps have a look at circuitikz, it's easier to install, simply use the MikTeX package manager and install the packages pgf and circuitikz.

Regarding pgf and TikZ, there's already a circuit library in TikZ. You can read about it in the TikZ manual, in 29 Circuit Libraries. Using circuitikz or TikZ has the advantage, that once you learned TikZ, you can do many other things with it, because TikZ is a very capable graphics package.

Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Circuit Diagrams

Post by localghost »

Just for completeness. You can also take a look at the pst-circ package, which is based on PSTricks, the other common graphics package. Personally I would prefer Stefan's suggestion.


Best regards and welcome to the board
Thorsten
New to TeX
Posts: 4
Joined: Sun Jun 10, 2012 10:53 am

Re: Circuit Diagrams

Post by New to TeX »

I want to use it because I believe its better. I have done all the set-up instructions I tried placing the example.m4 into C\Users\Username\texmf\Circuit_Macros, however when I go dpic -p example.m4 > example.tex I get the following error warning

Cannot Open File C:\Program Files\MiKTeX\2.9\miktek\bin\\README.TXT

Im stuck.
Laganne
Posts: 5
Joined: Thu Mar 10, 2011 1:33 pm

Circuit Diagrams

Post by Laganne »

New to TeX wrote:I want to use it because I believe its better. I have done all the set-up instructions I tried placing the example.m4 into C\Users\Username\texmf\Circuit_Macros, however when I go dpic -p example.m4 > example.tex I get the following error warning

Cannot Open File C:\Program Files\MiKTeX\2.9\miktek\bin\\README.TXT

Im stuck.
You have a configuration problem but unless you give a minimal example or a log file it is impossible to know where it is. However, you have to read your library files and source files into m4 and feed the result into dpic so your command should look something like the following:

Code: Select all

m4 -I <macro directory> pstricks.m4 example.m4 | dpic -p > example.tex
Post Reply