[pstricks] define parameters

Doris Behrendt doris.behrendt at me.com
Tue Oct 18 19:52:36 CEST 2011


hi list,

how can I get the following example to work?


\documentclass[12pt]{article}
\usepackage{pstricks}
\usepackage{pst-plot,pst-func}
\usepackage{pstricks-add}

\begin{document}

\def\xmin{-4}
\def\xmax{4}
\def\ymin{-4}
\def\ymax{4}
\begin{pspicture*}(\xmin,\ymin)(\xmax,\ymax)
%\psaxes{->}(0,0)(!\xmin .1 add \ymin .1 add)(!\xmax .1 sub \ymax .1  
sub)%doesn't work
\psaxes{->}(0,0)(!\xmin\space .1 add \ymin\space .1 add)(!\xmax\space . 
1 sub \ymax\space .1 sub)%doesn't work
%either
\end{pspicture*}


\end{document}

I also tried with

\pstVerb{/xmin -4 def} etc.

but this doesn't work either ...

???

tia
doris


More information about the PSTricks mailing list