使用 xelatex 进行 pstricks 和 beamer 编译导致 xkeyval 错误

使用 xelatex 进行 pstricks 和 beamer 编译导致 xkeyval 错误

我正在制作一些幻灯片,需要包含 pstricks 图像。我想通过 编译该文件xelatex

我最简单的例子如下

\documentclass[ngerman,xcolor=pst]{beamer}
\usepackage{fontspec,babel}
\usepackage{pst-solides3d,pst-3dplot,pst-eucl,pstricks}%
\title{Test}
\begin{document}
\begin{frame}
\begin{center}
\psset{unit=2}
\begin{pspicture}(-1.9,-0.7)(3,2.1)
\psset{viewpoint=3 -10  3,Decran=20,lightsrc=viewpoint}
\defFunction[algebraic]{sphere}(u,v){cos(u)*cos(v)} {sin(u)*cos(v)} {sin(v)}
\psSolid[object=surfaceparametree,base=pi neg pi 0 1,hue=0.3 0.3,function=sphere,linewidth=0.2pt,opacity=0.6,ngrid=0.1]
\axesIIID(1,3.5,.75)(1.25,5,1)
\psSolid[object=vecteur,args=0.707 -0.5 0.5,label=n](0.707,-0.5,0.5)
\psellipticarc{<-}(0,1.6)(1,0.2){300}{400}
\psellipticarc{->}(0,-0.1)(1.82,0.575){200}{340}
\end{pspicture}
\end{center}
\end{frame}
\end{document}

并导致错误

! Package xkeyval Error: `label' undefined in families `,pstricks,pst-node,pst-
solides3d,pst-3d,pst-plot,pst-3dplot,pst-eucl'.

See the xkeyval package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.19 \end{frame}

完成方式如下xelatex --version

XeTeX 3.1415926-2.2-0.9997.4 (TeX Live 2010)
kpathsea version 6.0.0
Copyright 2010 SIL International and Jonathan Kew.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 4.4 [with modifications for XeTeX]
Compiled with zlib version 1.2.3; using 1.2.3
Compiled with FreeType2 version 2.3.11; using 2.3.11
Compiled with fontconfig version 2.7.3; using 2.8.0
Compiled with libpng version 1.2.40; using 1.2.40
Compiled with xpdf version 3.02pl4

我不知道该如何解决这个问题。谁能帮忙?
当然,我查看了 xkeyval 文档:解释The keyname is not defined in the families. Probably you mistyped name.没有帮助。
提前致谢。

答案1

\psSolid[object=vecteur,args=0.707 -0.5 0.5,label=n](0.707,-0.5,0.5)

label关键字已定义。不知道你在哪里读到的。

相关内容