[pstricks] \sqrt in axislabel

Caroline Leppert c.leppert at tu-bs.de
Tue Jul 18 18:15:22 CEST 2006


Hi,

I tried to use the \sqrt command in an axislabel for the psgraph 
environment but got an error message, see example.

Any other math command seems to work fine. I've already checked 
something like yAxisLabel=$\int y_{y}^2$ without problems.

Any ideas?

Best regards,
Caroline

----------------------------------------------------------------------
\documentclass[10pt,a4paper,twoside,fleqn]{scrreprt}
\usepackage{pstricks}
\usepackage{pstricks-add}

\begin{document}

\begin{pspicture}(1.0\linewidth,0.6\linewidth)
\psset{xAxisLabel=x,yAxisLabel=$\sqrt{y}$}

\psgraph[axesstyle=frame, Ox=0, Oy=0, Dx=5, Dy=1, subticks=2](0,0)(25,5) 
{0.7\linewidth}{0.5\linewidth}

\endpsgraph

\end{pspicture}
\end{document}
----------------------------------------------------------------------
----------------------------------------------------------------------
[LaTeX] latex-test.tex => latex-test.dvi (latex)
[LaTeX] finished with exit status 1
./latex-test.tex:19:Undefined control sequence. 
\psset{xAxisLabel=h/d,yAxisLabel=$\sqrt{d}$}
latex-test.tex:0:Incomplete \iffalse; all text was ignored after line 19.
[LaTeX] 2 errors, 0 warnings, 0 badboxes

-- 



Caroline Leppert
Institut fuer Statik
Technische Universitaet Braunschweig
Beethovenstrasse 51
38106 Braunschweig
tel : +49 (0)531 391-3673
fax : +49 (0)531 391-8116



More information about the PSTricks mailing list