pst-solides3d 中的投影不起作用

pst-solides3d 中的投影不起作用

我刚刚开始学习如何使用 pst-solides3d。当我尝试按照手册中的说明将文本投影到平面上时

    \documentclass[pstricks]{standalone}
    \usepackage{pst-solides3d}

    \begin{document}

    \psset{viewpoint=50 20 30 rtp2xyz,Decran=50}
    \psset{unit=0.4}

    \begin{pspicture}(-8,-7)(4,9)
    \psset{solidmemory}
    \psSolid[object=cube,a=8,action=draw,linecolor=red,name=A]%
    \psset{fontsize=200}
    \psSolid[object=plan,action=none,definition=solidface,args=A 0,name=P0]
    \psProjection[object=texte,linecolor=gray,text=A,plan=P0]%
    \psset{phi=90}
    \psProjection[object=texte,linecolor=red,text=A,plan=P0]%
    \axesIIID(4,4,4)(6,6,6)
    \end{pspicture}

    \end{document}

在此处输入图片描述

但程序并没有像上图所示那样输出预期的输出,而是返回了控制台输出,指示错误

This is XeTeX, Version 3.141592653-2.6-0.999993 (MiKTeX 21.3)
entering extended mode
(untitled-3.tex
LaTeX2e <2020-10-01> patch level 4
L3 programming layer <2021-02-18>
(C:\Program Files\MiKTeX 2.9\tex/latex/standalone\standalone.cls
Document Class: standalone 2018/03/26 v1.3a Class to compile TeX sub-files stan
dalone
(C:\Program Files\MiKTeX 2.9\tex/latex/latex-tools\shellesc.sty)
(C:\Program Files\MiKTeX 2.9\tex/generic/iftex\ifluatex.sty
(C:\Program Files\MiKTeX 2.9\tex/generic/iftex\iftex.sty))
(C:\Program Files\MiKTeX 2.9\tex/latex/xkeyval\xkeyval.sty
(C:\Program Files\MiKTeX 2.9\tex/generic/xkeyval\xkeyval.tex
(C:\Program Files\MiKTeX 2.9\tex/generic/xkeyval\xkvutils.tex
(C:\Program Files\MiKTeX 2.9\tex/generic/xkeyval\keyval.tex))))
(C:\Program Files\MiKTeX 2.9\tex/latex/standalone\standalone.cfg)
(C:\Program Files\MiKTeX 2.9\tex/latex/base\article.cls
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
(C:\Program Files\MiKTeX 2.9\tex/latex/base\size10.clo))
(C:\Program Files\MiKTeX 2.9\tex/latex/pstricks\pstricks.sty
(C:\Program Files\MiKTeX 2.9\tex/latex/xcolor\xcolor.sty
(C:\Program Files\MiKTeX 2.9\tex/latex/graphics-cfg\color.cfg)
(C:\Program Files\MiKTeX 2.9\tex/latex/graphics-def\xetex.def))
(C:\Program Files\MiKTeX 2.9\tex/generic/xkeyval\pst-xkey.tex)
(C:\Program Files\MiKTeX 2.9\tex/generic/pstricks\pstricks.tex
(C:\Program Files\MiKTeX 2.9\tex/generic/pstricks\pst-fp.tex
`pst-fp' v0.06, 2020/11/20 (hv))
(C:\Program Files\MiKTeX 2.9\tex/generic/pgf/utilities\pgfutil-common.tex
(C:\Program Files\MiKTeX 2.9\tex/generic/pgf/utilities\pgfutil-common-lists.tex
)) (C:\Program Files\MiKTeX 2.9\tex/generic/pgf/utilities\pgfkeys.code.tex
(C:\Program Files\MiKTeX 2.9\tex/generic/pgf/utilities\pgfkeysfiltered.code.tex
)) (C:\Program Files\MiKTeX 2.9\tex/generic/pgf/utilities\pgffor.code.tex
Loading pgffor.code.tex
(C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmath.code.tex
(C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathcalc.code.tex
(C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathutil.code.tex)
(C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathparser.code.tex)
(C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathfunctions.code.tex
(C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathfunctions.basic.code.t
ex)
(C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathfunctions.trigonometri
c.code.tex)
(C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathfunctions.random.code.
tex)
(C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathfunctions.comparison.c
ode.tex)
(C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathfunctions.base.code.te
x)
(C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathfunctions.round.code.t
ex)
(C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathfunctions.misc.code.te
x)
(C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathfunctions.integerarith
metics.code.tex)))
(C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathfloat.code.tex)))
`PSTricks' v3.01a  <2021/03/30> (tvz,hv)
(C:\Program Files\MiKTeX 2.9\tex/xelatex/xetex-pstricks\pstricks.con
(C:\Program Files\MiKTeX 2.9\tex/generic/pstricks\xdvipdfmx.cfg))
(C:\Program Files\MiKTeX 2.9\tex/xelatex/xetex-pstricks\pstricks.con
(C:\Program Files\MiKTeX 2.9\tex/generic/pstricks\xdvipdfmx.cfg
Using PSTricks configuration for XeTeX+xdvipdfmx
))) (C:\Program Files\MiKTeX 2.9\tex/generic/pstricks\pst-fp.tex
`pst-fp' v0.06, 2020/11/20 (hv))
>>> Loading XeTeX special macros
(C:\Program Files\MiKTeX 2.9\tex/generic/pstricks\pstricks-xetex.def)))
(C:\Program Files\MiKTeX 2.9\tex/latex/pst-solides3d\pst-solides3d.sty
(C:\Program Files\MiKTeX 2.9\tex/generic/pst-solides3d\pst-solides3d.tex
(C:\Program Files\MiKTeX 2.9\tex/generic/pst-node\pst-node.tex
 v1.42a, 2020/04/01)
(C:\Program Files\MiKTeX 2.9\tex/generic/multido\multido.tex
 v1.42, 2010/05/14 <tvz>) `PSTSOLIDESIIID' v4.34a, 2018/12/27))
(C:\Program Files\MiKTeX 2.9\tex/latex/l3backend\l3backend-xetex.def ())
(untitled-3.aux) (C:\Program Files\MiKTeX 2.9\tex/latex/base\ts1cmr.fd)
[1] (untitled-3.aux)Error: /invalidfont in /findfont
Operand stack:
   --nostringval--   ISO-Font   NimbusSanL-ReguCond
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   2015   1   3   %oparray_pop   2014   1   3   %oparray_pop   1998   1   3   %oparray_pop   1884   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   1967   3   7   %oparray_pop
Dictionary stack:
   --dict:989/1684(ro)(G)--   --dict:0/20(G)--   --dict:122/200(L)--   --dict:778/1012(L)--   --dict:218/300(L)--   --dict:778/1012(L)--   --dict:1/2(L)--
Current allocation mode is local
Last OS error: No such file or directory
Current file position is 11798
MiKTeX GPL Ghostscript 9.25: Unrecoverable error, exit code 1

有人能告诉我如何解决这个问题吗?提前谢谢!顺便说一句,我在 Windows 上使用 Texworks。

相关内容