[pstricks] Code doesnt compile

Dougherty, Michael michael.dougherty at swosu.edu
Tue Apr 1 15:47:56 CEST 2008


Olga,

It compiles fine on my machine.  What kind of operating system are you using?

My TeXing began with Unix, so I use Linux, and when I need to use Windows, I try to use a command line C:> to do the commands I could use in Linux.  Like Jürgen mentioned, be sure you are using LaTeX and not PDFLaTeX directly.

C:> latex file.tex               'produces a .dvi file from your code
C:> dvips -o file.ps file.dvi    'makes a .ps file from .dvi file (need Ghostscript/GS I think)
C:> ps2pdf file.ps file.pdf      'makes a .pdf file from .ps file.  (file.pdf is default and can be omitted, or can be changed to something else)

The commands are the same in Linux.  You have to have all the packages.  Texnikcenter has a couple problems with such things.

--Mike D.


-----Original Message-----
From: pstricks-bounces at tug.org on behalf of Olga Lyashevska
Sent: Tue 4/1/2008 4:29 AM
To: pstricks at tug.org
Subject: [pstricks] Code doesnt compile
 
Dear List,

I cant compile the following code. I am new to pstricks, so I would
appriciate any tips an how to get started.

------
\documentclass[a4paper,11pt]{article}
\usepackage[usenames,dvipsnames]{pstricks}
\usepackage{epsfig}
\begin{document}
\begin{pspicture}(0,-1.91)(6.3,1.91)
\psframe[linewidth=0.04](3.44,0.77)(0.92,-0.77)
\psframe[linewidth=0.04](4.24,1.07)(2.4,0.09)
\psline[linewidth=0.04cm](2.76,1.53)(4.06,-0.09)
\psline[linewidth=0.04cm](6.28,1.19)(0.02,-1.89)
\psline[linewidth=0.04cm](5.42,1.89)(5.28,-0.07)
\end{pspicture}
\end{document}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3371 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20080401/d6f6d467/attachment.bin 


More information about the PSTricks mailing list