# [pstricks] Parameterized graphics?

Johan Ekh ekh.johan at gmail.com
Mon Dec 31 00:22:02 CET 2007

Thanks anyway,
I tried it but as you already know it did not work.
I think I will go for a solution outside pstricks, i.e. use some simple
pre-processor to replace my variables with numerical values in the
pstricks code.

Do you know if anyone has written such a pre-processor?
I should not be difficult and I will do it myself if if does not

Best regards,
Johan

2007/12/29, Alan Ristow <ristow at ece.gatech.edu>:
>
> Herbert Voss wrote:
> > Johan Ekh schrieb:
> >> Hi all,
> >> I try to create a parameterized illustration, i.e. a picture that can
> be
> >> completely
> >> modified by changing the numerical values of some user defined
> parameters.
> >> I'd like to use constructs such as
> >>
> >> \def\var1{174.2 6.5 sub 2 div }
> >> \multido{\n=0.0+22.5}{16}{%
> >> \uput{\var1}[\n](4,4){\psdot[dotsize=0.2](0,0)}}
> >>
> >> but I get an error when running latex.
> >>
> >> Is it possible to do something like this in pstricks?
> >
> > no, not in this case. The parameter is read as a value with
> > a unit before it is passed to PostScript.
>
> Whoops! I remembered that argument as angle, not a length -- I guess
> that's what I get for responding in a hurry with untested code. Sorry....
>
> Alan
>
> _______________________________________________
> pstricks mailing list
> pstricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20071231/2361053b/attachment.html