我买了一台装有 OS X 10.8.3 的新 Mac,并安装了 MacTeX-2012,但现在 pstricks 似乎无法正常工作。之前我使用(普通)TeX 并选择了 TeX 和 DVI 排版选项。当我在各种常见问题解答和邮件列表中寻求帮助时,我找到的答案都是针对 LaTeX 的。所以我从 TUG 下载了一个使用 LaTeX 的 pstricks 示例文件,但它也不起作用。即使我把
% !TEX TS-program = latex
在文件顶部并使用 LaTeX 或 XeLaTeX 运行它,它不起作用。例如,使用 LaTeX 引擎(以及 TeX 和 DVI 排版),我收到此错误消息:
### 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
(./hilbert.tex
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.
(/usr/local/texlive/2012/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2012/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2012/texmf-dist/tex/latex/pstricks/pstricks.sty
(./pstricks.tex
(/usr/local/texlive/2012/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
(/usr/local/texlive/2012/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2012/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2012/texmf-dist/tex/generic/xkeyval/keyval.tex))))
(/usr/local/texlive/2012/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.05, 2010/01/17 (hv))
`PSTricks' v0.05 <2010/01/17> (tvz)
(/usr/local/texlive/2012/texmf-dist/tex/generic/pstricks/pstricks.con))
(/usr/local/texlive/2012/texmf-dist/tex/generic/pstricks/pst-fp.tex)
(/usr/local/texlive/2012/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/local/texlive/2012/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/dvips.def)))
(./hilbert.aux)
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
</usr/local/texlive/2012/texmf/dvips/base/tex.pro>
</usr/local/texlive/2012/texmf-dist/dvips/pstricks/pstricks.pro>
</usr/local/texlive/2012/texmf-dist/dvips/pstricks/pst-algparser.pro>
</usr/local/texlive/2012/texmf-dist/dvips/pstricks/pst-dots.pro>
</usr/local/texlive/2012/texmf/dvips/base/texps.pro>
</usr/local/texlive/2012/texmf/dvips/base/special.pro>
</usr/local/texlive/2012/texmf/dvips/base/color.pro>.
</usr/local/texlive/2012/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
</usr/local/texlive/2012/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb>
[1]
### 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 ()
如能提供任何帮助我将非常感激。
答案1
问题已经解决。安装 Ghostscript 9.07 后,当我在排版下选择“TeX 和 DVI”时,它工作正常。感谢大家的建议!