[pstricks] Re: pst-3dplot axis labels
Herbert Voss
Herbert.Voss at alumni.TU-Berlin.DE
Sat Jul 24 22:36:50 CEST 2004
Bruce Burlton wrote:
> I am trying to change the axis labels to \hat{x}, but keep getting an
> "Undefined control sequence". In fact none of the so-called math
> accents seem to work.
>
> The actual lines of code are
>
> \begin{pspicture}(-2,-2)(2,2)
> \psset{nameX=$\hat{x}$}
> \pstThreeDCoor[xMin=0, xMax=2, yMin=0, yMax=2, zMin=0, zMax=2]
>
> \pstThreeDLine[linewidth=1.5pt,linecolor=green,arrows=->](0,0,0)(.5,.8660,1.7321)
> \pstThreeDDot[drawCoor=true](.5,.8660,1.7321)
> \end{pspicture}
>
> Without the psset command it works fine. I guess the actual question is
> "Can I use math mode here"?
It is a problem with amsmath, it redefines \hat, but saves
the old definition as \Hat (Uppercase), so
\psset{nameX=$\Hat{x}$}
should work.
Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
More information about the PSTricks
mailing list