[pstricks] \pst-getint{#1}

Shane Gibney shanegibney at gmail.com
Thu Feb 19 12:43:11 CET 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20090219/01048156/attachment.html 


More information about the PSTricks mailing list