Results 1 to 4 of 4

Thread: LaTeX & pst-circ package

  1. #1
    Join Date
    Sep 2005
    Location
    NY
    Beans
    407
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    LaTeX & pst-circ package (solved)

    Hi guys,

    I use Kile for latex word processing. I am trying to draw electrical circuits in latex. I came across the pst-circ package which seems to perform that function.

    The README:

    This version of pst-circ uses the xkeyval package, the extended
    version of keyval.

    Save the files pst-circ.sty|.tex in a directory, which is part of your
    local TeX tree. pst-circ.pro should be saved in ../texmf/dvips/pstricks/
    Then do not forget to run texhash to update this tree.
    pst-circ needs pst-plot and pst-tricks, which should be part of your
    local TeX installation, otherwise get it from a CTAN server, f.ex.
    ftp://ftp.dante.de
    So I downloaded pst-circ.sty & pst-circ.tex & pst-circ.pro from here.

    Followed the directions above.

    Then I went into kile and tried to test it out. Here's the tex code:

    Code:
    \documentclass[a4paper,10pt]{article}
    
    \usepackage{pst-circ}
    %opening
    \title{}
    \author{}
    
    \begin{document}
    
    \pnode(0,1){A}
    \pnode(3,1){B}
    \resistor(A)(B){$R$}
    
    \end{document}
    Compiles fine when I build a dvi or a pdf. However, the output is messed up:

    DVI

    PDF


    The output should be a resistor like here (top of pg 3)

    Any help would be appreciated!

    EDIT: now this is really weird. Using xdvi (as opposed to evince), the DVI file DOES show the output appropriately. But when I convert the dvi to a pdf and view it through evince or the official adobe reader, I only see an "R"
    Last edited by mustang; November 6th, 2006 at 04:37 AM.

  2. #2
    Join Date
    Sep 2005
    Location
    NY
    Beans
    407
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: LaTeX & pst-circ package

    Sigh, spent maybe five minutes trying something else and came up with the solution. Turns out, kile (by default) uses dvipdfm to convert dvi to pdf.

    dvipdfm doesn't seem to work correctly (atleast with this package)

    Use dvipdf instead

    In kile:

    Settings->Configure Kile->Build->DVItoPDF

    Replace dvipdfm with dvipdf

  3. #3
    Join Date
    Jan 2005
    Location
    South Africa
    Beans
    178
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: LaTeX & pst-circ package

    Glad you managed to fix your problem.

    For future reference - pst-circ is in edgy.

    You just need to install the package

    texlive-pstricks

    You can install this without installing the rest of the texlive stuff and it should work fine for texmf

  4. #4
    Join Date
    Mar 2008
    Location
    Bonn - Germany
    Beans
    4
    Distro
    Ubuntu

    Re: LaTeX & pst-circ package

    I have a problem with this package. I used this example as source code, but the output (dvi and pdf) shows the labels at the wrong place. Here my dvi-file:
    DVI
    Putting more element means more labels at the same place.
    Has somebody an idea whats going wrong?

    Thx, Astro
    Last edited by Astrophysiker; March 29th, 2008 at 11:15 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •