目前我正在尝试使用pst-map3d
包。下面的代码绘制了地球球,但没有绘制国家/国家线。
我现在在 Windows、Linux 和 Mac 机器上尝试了该代码,每次都得到相同的结果。
包的数据被复制到C:/data/pst-geo/data
。对于编译,我使用LaTeX->dvips->ps2pdf
-chain。
\documentclass[a4paper]{article}
\usepackage{pstricks}
\usepackage{pst-map3d}
\begin{document}
\begin{pspicture}(-4,-4)(4,4)
\WorldMapThreeD[PHI=30,
THETA=0,
Decran=15,
path=C:/data/pst-geo/data]
\end{pspicture}
\end{document}
该代码产生以下图:
输出显示一错误(对于 Windows 8 机器)。
Process started: latex.exe -src -interaction=nonstopmode "temp".tex
Process exited normally
Process started: dvips.exe -o "temp".ps "temp".dvi
This is dvips(k) 5.994 Copyright 2014 Radical Eye Software (www.radicaleye.com) ' TeX output 2015.02.06:0040' -> temp.ps <C:/Program Files (x86)/MiKTeX 2.9/dvips/base/tex.pro>
<C:/Program Files (x86)/MiKTeX 2.9/dvips/pstricks/pstricks.pro>
<C:/Program Files (x86)/MiKTeX 2.9/dvips/pstricks/pst-algparser.pro>
<C:/Program Files (x86)/MiKTeX 2.9/dvips/pst-tools/pst-tools.pro>
<C:/Program Files (x86)/MiKTeX 2.9/dvips/pstricks/pst-dots.pro>
<C:/Program Files (x86)/MiKTeX 2.9/dvips/pst-node/pst-node.pro> <C:/Program Files (x86)/MiKTeX 2.9/dvips/pst-geo/pst-map3d.pro>
<C:/Program Files (x86)/MiKTeX 2.9/dvips/pst-barcode/pst-barcode.pro>
<C:/Program Files (x86)/MiKTeX 2.9/dvips/base/texps.pro>
<C:/Program Files (x86)/MiKTeX 2.9/dvips/base/special.pro> <C:/Program Files (x86)/MiKTeX 2.9/dvips/base/color.pro>.
<C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr10.pfb> [1
]
Process exited normally
Process started: ps2pdf.exe "temp".ps
MiKTeX GPL Ghostscript
9.05: Unrecoverable error, exit code 1
Process exited normally
我的 LaTeX 代码可能有错误吗?
答案1
对于ghostscript
运行(ps2pdf
),您需要可选参数-dNOSAFER
。否则它不会加载外部数据文件。