[OS X TeX] pstricks not working

Michael Kubovy kubovy at virginia.edu
Sat Nov 13 22:08:59 EST 2004


I welcome any advice you might have for someone who is new to pstricks.

Here's a small test file:

\documentclass[12pt]{article}
\usepackage{pstricks}

\begin{document}
\begin{pspicture}(0,0)(2,2)
	\showgrid
	\psset{linewidth=0.2pt,arrowscale=2,tbarsize=10pt}
	\psline{|<->|}(0,-100)(860,-100)\rput*(430,-100){860mm}
	\psline{|<->|}(960,0)(960,1250)\rput*{90}(960,625){1250mm}
	\psline{|<->|}(-100,0)(-100,940)\rput*{90}(-100,470){940mm}
\end{pspicture}
\end{document}

I get the following output on the console:

### This is  
/usr/local/teTeX/bin/powerpc-apple-darwin-current/altpdflatex, Version  
$Revision: 2.16 $
### /usr/local/teTeX/bin/powerpc-apple-darwin-current/latex  
psTricksTest.tex
This is pdfeTeX, Version 3.141592-1.20a-2.2 (Web2C 7.5.3)
output format initialized to DVI
entering extended mode
(./psTricksTest.tex
LaTeX2e <2003/12/01>
Babel <v3.8c> and hyphenation patterns for american, french, german,  
ngerman, n
ohyphenation, loaded.
(/usr/local/teTeX/share/texmf.tetex/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/local/teTeX/share/texmf.tetex/tex/latex/base/size12.clo))
(/Users/mk9y/Library/texmf/tex/latex/pstricks/latex/pstricks.sty
(/Users/mk9y/Library/texmf/tex/latex/pstricks/generic/pstricks.tex
`PSTricks' v1.04  <2004/06/22> (tvz)
(/Users/mk9y/Library/texmf/tex/latex/pstricks/generic/pstricks.con))
(/Users/mk9y/Library/texmf/tex/latex/xcolor/xcolor.sty
(/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/color.cfg)
(/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/dvips.def)))
(./psTricksTest.aux)
! Undefined control sequence.
l.10 	\showgrid

When I run

\documentclass[12pt]{article}
\usepackage{pdftricks}
\begin{psinputs}
	\usepackage{pstricks}
\end{psinputs}

\begin{document}
\begin{pdfpic}
	\begin{pspicture}(0,0)(2,2)
		\showgrid
		\psset{linewidth=0.2pt,arrowscale=2,tbarsize=10pt}
		\psline{|<->|}(0,-100)(860,-100)\rput*(430,-100){860mm}
		\psline{|<->|}(960,0)(960,1250)\rput*{90}(960,625){1250mm}
		\psline{|<->|}(-100,0)(-100,940)\rput*{90}(-100,470){940mm}
	\end{pspicture}
\end{pdfpic}

I get on the console:
This is pdfeTeX, Version 3.141592-1.20a-2.2 (Web2C 7.5.3)
  \write18 enabled.
output format initialized to PDF
entering extended mode
(./psTricksTest.tex
LaTeX2e <2003/12/01>
Babel <v3.8c> and hyphenation patterns for american, french, german,  
ngerman, n
ohyphenation, loaded.
(/usr/local/teTeX/share/texmf.tetex/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/local/teTeX/share/texmf.tetex/tex/latex/base/size12.clo))
(/usr/local/teTeX/share/texmf.gwtex/tex/latex/pdftricks/pdftricks.sty

Package pdftricks Warning: ****************************************
(pdftricks)                Package pdftricks v,1.16 loaded
(pdftricks)                [psTricks support in PDF (CVR, ACL)]
(pdftricks)                ****************************************.

(/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/graphicx.sty
(/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/keyval.sty)
(/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/graphics.sty
(/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/trig.sty)
(/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/graphics.cfg)
(/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/pdftex.def)))
(/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/color.sty
(/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/color.cfg))

Package pdftricks Warning: ****************************************
(pdftricks)                Using \write 18 capability
(pdftricks)                for producing PDF-figures.
(pdftricks)                ****************************************.

(/usr/local/teTeX/share/texmf.tetex/tex/latex/moreverb/moreverb.sty
(/usr/local/teTeX/share/texmf.tetex/tex/latex/tools/verbatim.sty)))
(./psTricksTest.aux)
(/usr/local/teTeX/share/texmf.local/tex/context/base/supp-pdf.tex
(/usr/local/teTeX/share/texmf.local/tex/context/base/supp-mis.tex
loading : Context Support Macros / Miscellaneous (2004.10.26)
)
loading : Context Support Macros / PDF (2004.10.26)
) Opening PDFStream=psTricksTest-fig1.texThis is pdfeTeX, Version  
3.141592-1.20a-2.2 (Web2C 7.5.3)
output format initialized to DVI
entering extended mode
This is dvips(k) 5.94b Copyright 2004 Radical Eye Software  
(www.radicaleye.com)
' TeX output 2004.11.13:2201' -> psTricksTest-fig1.ps
<texc.pro><pstricks.pro><pst- 
dots.pro><texps.pro><special.pro><color.pro>.
<cmr10.pfb>[1]
sh: line 1: ps2eps: command not found
rm: psTricksTest-fig1.eps: No such file or directory
  (./psTricksTest.aux) )
No pages of output.
Transcript written on psTricksTest.log.

The file  psTricksTest-fig1.ps is created, but it is blank.
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS: 	P.O.Box 400400	Charlottesville, VA 22904-4400
Parcels:	Room 102		Gilmer Hall
		McCormick Road	Charlottesville, VA 22903
Office:	B011	+1-434-982-4729
Lab:		B019	+1-434-982-4751
Fax:		+1-434-982-4766
WWW:	http://www.people.virginia.edu/~mk9y/

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the MacOSX-TeX mailing list