Math & Sciencepackage pst-circ

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
kbfloyd
Posts: 3
Joined: Wed Nov 10, 2010 4:24 am

package pst-circ

Post by kbfloyd »

I'm experimenting with this package for writing circuit analysis exams for engineering students. My environment is Cygwin on a Win7 machine.

I can produce (it seems) a dvi file, but the subsequent dvips step fails with "dvips: ! Couldn't find header file pst-circ.pro"

I downloaded the .pro file from here http://pstcirc.free.fr/download/download.htm
and put it in /usr/share/texmf/dvips/pstricks (because that's where the related .pro files seemed to be).

Has anyone encountered this problem before?

Ken

Here's the file I'm compiling:

Code: Select all

\documentclass[12pt]{article}
\usepackage{pstricks}
\usepackage{pst-circ}
\begin{document}

\begin{pspicture}(0,0)(3,2)
  \pnode(0,1){A}
  \pnode(3,1){B}
  \resistor(A)(B){$R$}
\end{pspicture}
\end{document
Last edited by kbfloyd on Thu Nov 11, 2010 2:27 am, edited 1 time in total.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

package pst-circ

Post by CrazyHorse »

kbfloyd wrote:I'm experimenting with this package for writing circuit analysis exams for engineering students. My environment is Cygwin on a Win7 machine.

I can produce (it seems) a dvi file, but the subsequent dvips step fails with "dvips: ! Couldn't find header file pst-circ.pro"

I downloaded the .pro file from here http://pstcirc.free.fr/download/download.htm
and put it in /usr/share/texmf/dvips/pstricks (because that's where the related .pro files seemed to be).
the file is part of any TeX-distribution, no need for loading
it by hand. However, at least you need the packages
pst-circ.pro
pst-circ.tex
pst-circ.sty
In the readme file you'll find where these packages have to
be saved. the latest package ist available from CTAN:
http://mirror.ctan.org/graphics/pstrick ... /pst-circ/
What tex distribution do you have installed?

Herbert
kbfloyd
Posts: 3
Joined: Wed Nov 10, 2010 4:24 am

Re: package pst-circ

Post by kbfloyd »

I'm just using whatever gets installed with Cygwin (I elect to install the complete distribution of Cygwin, and I updated the entire installation about 2 weeks ago.)

"tex -v" returns:
TeX 3.141592 (Web2C 7.5.4)
kpathsea version 3.5.4

I do have the pst-circ.tex and .sty files. It's just the .pro file I didn't seem to have.

Thanks for your help. I will go to CTAN and see if getting the latest package will fix my problem.

I also found another package that my do what I want: CircuiTikZ

I'll let you know how it turns out!

Ken
kbfloyd
Posts: 3
Joined: Wed Nov 10, 2010 4:24 am

Re: package pst-circ

Post by kbfloyd »

I figured it out. I had neglected to run texhash after getting the .pro file in the right place. (Yes, I'm embarrassed!)
Post Reply