[pstricks] newbe problem with pst-xkey

Omer Moussaffi mousomer at gmail.com
Mon Dec 7 18:47:00 CET 2009


I tried to compile from the pst-xkey examples:

\documentclass{minimal}
\usepackage{multido,pst-xkey}
\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
\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}}}

\begin{document}
\MultTable
\MultTable[Value=9]
\setkeys{psset}{Value=6}
\MultTable[Start=6,End=11]
\MultTable[Start=19742,End=19742]
\end{document}


I get an error: "Undefined control sequence" on every line with a "\define@
..."
This is the start of the log:

> This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8) (preloaded
>> format=latex 2009.11.13)  7 DEC 2009 19:40
>
> entering extended mode
>
> **teskkey1.tex
>
> ("C:\Documents and Settings\Mousomer\My
>> Documents\omer\texthings\teskkey1.tex"
>
> LaTeX2e <2005/12/01>
>
> Babel <v3.8l> and hyphenation patterns for english, dumylang,
>> nohyphenation, german, ngerman, german-x-2009-06-19, ngerm
>
> an-x-2009-06-19, french, loaded.
>
> ("C:\Program Files\MiKTeX 2.8\tex\latex\base\minimal.cls"
>
> Document Class: minimal 2001/05/25 Standard LaTeX minimal class
>
> ) ("C:\Program Files\MiKTeX 2.8\tex\latex\multido\multido.sty"
>
> Package: multido 2004/05/17 package wrapper for PSTricks `multido.tex',
>> (HV/RN)
>
>
>> ("C:\Program Files\MiKTeX 2.8\tex\generic\multido\multido.tex"  v1.41,
>> 2004/05/18 <tvz>
>
> \multido at count=\count79
>
> \multidocount=\count80
>
> \multido at stuff=\toks14
>
> )
>
> File: multido.tex 2004/05/18 v1.41 `multido' (tvz)
>
> )
>
> ("C:\Program Files\MiKTeX 2.8\tex\latex\xkeyval\pst-xkey.sty"
>
> Package: pst-xkey 2005/11/25 v1.6 package wrapper for pst-xkey.tex (HA)
>
>
>> ("C:\Program Files\MiKTeX 2.8\tex\generic\xkeyval\pst-xkey.tex"
>
> File: pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
>
>
>> ("C:\Program Files\MiKTeX 2.8\tex\latex\xkeyval\xkeyval.sty"
>
> Package: xkeyval 2008/08/13 v2.6a package option processing (HA)
>
>
>> ("C:\Program Files\MiKTeX 2.8\tex\generic\xkeyval\xkeyval.tex"
>
> \XKV at toks=\toks15
>
> \XKV at tempa@toks=\toks16
>
> \XKV at depth=\count81
>
> File: xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)
>
>
>> ("C:\Program Files\MiKTeX 2.8\tex\generic\xkeyval\keyval.tex")))))
>
> ! Undefined control sequence.
>
> l.5 \define
>
>            @key{psset}{Start}{\pst at getint{#1}{\MultTable at Start}}
>
> The control sequence at the end of the top line
>
> of your error message was never \def'ed. If you have
>
> misspelled it (e.g., `\hobx'), type `I' and the correct
>
> spelling (e.g., `I\hbox'). Otherwise just continue,
>
> and I'll forget about whatever was undefined.
>
>
>>
>> ! LaTeX Error: Missing \begin{document}.
>
>
>> See the LaTeX manual or LaTeX Companion for explanation.
>
> Type  H <return>  for immediate help.
>
>  ...
>
>
>
> l.5 \define@
>
>             key{psset}{Start}{\pst at getint{#1}{\MultTable at Start}}
>
> You're in trouble here.  Try typing  <return>  to proceed.
>
> If that doesn't work, type  X <return>  to quit.
>
>
>> Missing character: There is no @ in font nullfont!
>
> Missing character: There is no k in font nullfont!
>
> Missing character: There is no e in font nullfont!
>
> Missing character: There is no y in font nullfont!
>
> Missing character: There is no p in font nullfont!
>
> Missing character: There is no s in font nullfont!
>
> Missing character: There is no s in font nullfont!
>
> Missing character: There is no e in font nullfont!
>
> Missing character: There is no t in font nullfont!
>
> Missing character: There is no S in font nullfont!
>
> Missing character: There is no t in font nullfont!
>
> Missing character: There is no a in font nullfont!
>
> Missing character: There is no r in font nullfont!
>
> Missing character: There is no t in font nullfont!
>
>
>> Et cetera.

As can be seen, I am using current MikTeX 2.8 with pst installed. Can anyone
help?

-- 
The journey of a thousand miles begins with a single oy.
Omer Moussaffi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20091207/84034347/attachment-0001.html>


More information about the PSTricks mailing list