
Graphics, Figures & Tables ⇒ Circuit Diagrams
-
- Posts: 4
- Joined: Sun Jun 10, 2012 10:53 am
Circuit Diagrams
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 

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

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Circuit Diagrams
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
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

Regarding pgf and TikZ, there's already a circuit library in TikZ. You can read about it in the

Stefan
LaTeX.org admin
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Circuit Diagrams
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
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 4
- Joined: Sun Jun 10, 2012 10:53 am
Re: Circuit Diagrams
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.
Cannot Open File C:\Program Files\MiKTeX\2.9\miktek\bin\\README.TXT
Im stuck.
Circuit Diagrams
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: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.
Code: Select all
m4 -I <macro directory> pstricks.m4 example.m4 | dpic -p > example.tex