TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I got a new Mac with OS X 10.8.3 and installed MacTeX-2012, but pstricks doesn't seem to work now. Before I used (plain) TeX and chose the TeX and DVI typesetting option. When I looked for help in various FAQs and mailing lists, the answers I found were specific to LaTeX, though. So I downloaded a pstricks example file from TUG that uses LaTeX, and that doesn't work either. Even after I put

% !TEX TS-program = latex

at the top of the file and ran it with LaTeX or XeLaTeX, it wouldn't work. For example, with the LaTeX engine (and TeX and DVI typesetting), I get this error message:

### This is /usr/texbin/simpdftex, Version 20070809
### /usr/texbin/latex hilbert.tex

This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
 restricted \write18 enabled.
entering extended mode
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2012-05-30, ngerman-x-2012-05-30, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, friulan, galician, german, ngerman, swissgerman, monogreek, greek, h
ungarian, icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, ma
rathi, oriya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, 
kurmanji, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk,
 polish, portuguese, romanian, romansh, russian, sanskrit, serbian, serbianc, s
lovak, slovenian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian, 
welsh, loaded.
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
`pst-fp' v0.05, 2010/01/17 (hv))
`PSTricks' v0.05  <2010/01/17> (tvz)
Overfull \hbox (15.0pt too wide) in paragraph at lines 37--44
[1] (./hilbert.aux) )
(see the transcript file for additional information)
Output written on hilbert.dvi (1 page, 507508 bytes).
SyncTeX written on hilbert.synctex.gz.
Transcript written on hilbert.log.

### /usr/texbin/dvips -R -Poutline  -o /tmp/altpdflatex.55576-1370136084/hilbert.ps hilbert.dvi

This is dvips(k) 5.992 Copyright 2012 Radical Eye Software (www.radicaleye.com)
' TeX output 2013.06.01:2121' -> /tmp/altpdflatex.55576-1370136084/hilbert.ps

### ps2pdf13 /tmp/altpdflatex.55576-1370136084/hilbert.ps /tmp/altpdflatex.55576-1370136084/hilbert.pdf
/usr/texbin/simpdftex: line 495: ps2pdf13: command not found

### FAILED to generate /tmp/altpdflatex.55576-1370136084/hilbert.pdf ()

Any help would be immensely appreciated.

share|improve this question
Welcome to TeX.SX! You can have a look on our starter guide to familiarize yourself further with our format. – Marco Daniel Jun 2 '13 at 16:07
Welcome to TeX.SX! It seems that you didn't install properly Ghostscript. Did you choose a custom installation for MacTeX? – egreg Jun 2 '13 at 16:08
The issue is related to the unknown executable ps2pdf13. Use ps2pdf instead. How to setup simpdftex is explained on the main page: man.he.net/man1/simpdftex -- However if you are interested in an automatic compilation tool you can have a look at arara. – Marco Daniel Jun 2 '13 at 16:09
No, I did the standard installation of MacTeX. – Lynn Jun 2 '13 at 16:12
ps2pdf13 should exist in a standard MacTeX installation. What does which ps2pdf ps2pdf13 (type from the Terminal) return for you? – Alan Munn Jun 2 '13 at 16:39

The problem is fixed now. After installing Ghostscript 9.07, it works fine when I chose "TeX and DVI" under Typesetting. Thanks for your suggestions everyone!

share|improve this answer
I'm glad you got it working, but Ghostscript is part of the standard MacTeX install, so it's odd that it wasn't installed for you. Here's an image of the default installer configuration: MacTeX installer image. – Alan Munn Jun 3 '13 at 19:11
I just noticed that. Ghostscript 9.05 is in MacTeX, but installing Ghostscript 9.07 seemed to fix the problem for me. – Lynn Jun 3 '13 at 19:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.