[pstricks] \pst-getint{#1}

azzam.hassan at voila.fr azzam.hassan at voila.fr
Thu Feb 19 13:19:08 CET 2009


I think you have to put
\makeatletter
...
\makeatother
arrounding commands that contain @

> Message du 19/02/09 à 12h52
> De : "Shane Gibney" <shanegibney at gmail.com>
> A : pstricks at tug.org
> Copie à : 
> Objet : [pstricks] \pst-getint{#1}
> 
> I am trying to run the following program.
> 
> \documentclass{article}
> > \usepackage{graphicx}
> > %\usepackage[turkish]{babel}
> > %\usepackage{pstricks-add,pst-xkey}
> > \usepackage{xkeyval}
> > \makeatletter
> > %\define at key{fam}{key}{#1}
> >
> > % "Start", "End" and "Value" parameters
> >
> > \begin{document}
> >
> > \define at key{psset}{Start}{\pst at getint{#1}{\MultTable at Start}}
> > \define at key{psset}{End}{\pst at getint{#1}{\MultTable at End}}
> > \define at key{psset}{Value}{\pst at getint{#1}{\MultTable at Value}}
> >
> > \setkeys{psset}{Start=1,End=5,Value=2}% Default values
> >
> > % Main macro for "multiplication table" object
> > \def\MultTable{\def\pst at par{}\pst at object{MultTable}}
> > \def\MultTable at i{{%
> > \use at par% Assignment of local parameters
> > \pst at cnth=\MultTable at End
> > \advance\pst at cnth-\MultTable at Start
> > \advance\pst at cnth\@ne
> > \multido{\iValue=\MultTable at Start+\@ne}{\pst at cnth}{%
> > \pst at cntg=\iValue
> > \multiply\pst at cntg\MultTable at Value
> > \iValue$\times$\MultTable at Value = \the\pst at cntg
> > \ifnum\multidocount=\pst at cnth\else; \fi}}}
> >
> > \MultTable
> >
> > \MultTable[Value=9]
> >
> > \setkeys{psset}{Value=6}
> >
> > \MultTable[Start=6,End=11]
> >
> > \MultTable[Start=19742,End=19742]
> > \end{document}
> 
> 
> This program comes from the PSTricks User's Guide 2007 p.165.
> 
> Am I using the correct packages. I am getting an error just after
> ...\pst at getint          {#1}....... but \pst at getint is a pstricks macro
> according to the pstricks documentation.
> 
> So why the error on compiling?
> 
> Any help greatly appreciated,
> 
> Shane
> >
> [ (pas de nom de fichier) (0.1 Ko) ]


Cordialement
Azzam HASSAN
tel : 06 63 82 97 09

____________________________________________________

 Ne vous perdez plus sur la route des vacances ! Préparez votre itinéraire grâce à Voila sur http://itineraire.voila.fr/itineraire.html 




More information about the PSTricks mailing list