[pstricks] problem with psgraph
Patrice Megret
Patrice.Megret at fpms.ac.be
Mon Oct 17 16:34:42 CEST 2005
Dear Herbert,
The following code crashes when trying to pass yAxisLabel=$...$ in the
psgraph environment.
In fact, everything is ok if no commands such as \mathrm, ...are used in
my \newcommand for \pmPSD.
Thanks for your help.
Patrice
\documentclass{article}
\usepackage{pstricks}
\usepackage{pstricks-add}
\newcommand{\pmPSD}{\varphi_{\mathrm{th}}}
\begin{document}
$\pmPSD$
\psset{llx=-0.5cm,urx=0.5cm,lly=-0.5cm,ury=0.5cm,xAxisLabel=$f$,yAxisLab
el=$\pmPSD$}
\begin{psgraph}[labels=none,arrows=->,ticks=none](0,0)(-20,0)(20,1){10cm
}{1.5cm}
\psline[linewidth=1.5pt](-15,0.5)(15,0.5)
\rput(3,-0.2){$\Delta f$}
\rput(-3,-0.2){$\Delta f$}
\end{psgraph}
\end{document}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20051017/24ce37f8/attachment.html
More information about the PSTricks
mailing list