Thanks anyway,<br>I tried it but as you already know it did not work.<br>I think I will go for a solution outside pstricks, i.e. use some simple<br>pre-processor to replace my variables with numerical values in the <br>pstricks code.
<br><br>Do you know if anyone has written such a pre-processor?<br>I should not be difficult and I will do it myself if if does not <br>already exist.<br><br>Best regards,<br>Johan<br><br><br><div><span class="gmail_quote">
2007/12/29, Alan Ristow <<a href="mailto:ristow@ece.gatech.edu">ristow@ece.gatech.edu</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Herbert Voss wrote:<br>> Johan Ekh schrieb:<br>>> Hi all,<br>>> I try to create a parameterized illustration, i.e. a picture that can be<br>>> completely<br>>> modified by changing the numerical values of some user defined parameters.
<br>>> I'd like to use constructs such as<br>>><br>>> \def\var1{174.2 6.5 sub 2 div }<br>>> \multido{\n=0.0+22.5}{16}{%<br>>> \uput{\var1}[\n](4,4){\psdot[dotsize=0.2](0,0)}}<br>>><br>
>> but I get an error when running latex.<br>>><br>>> Is it possible to do something like this in pstricks?<br>><br>> no, not in this case. The parameter is read as a value with<br>> a unit before it is passed to PostScript.
<br><br>Whoops! I remembered that argument as angle, not a length -- I guess<br>that's what I get for responding in a hurry with untested code. Sorry....<br><br>Alan<br><br>_______________________________________________
<br>pstricks mailing list<br><a href="mailto:pstricks@tug.org">pstricks@tug.org</a><br><a href="http://tug.org/mailman/listinfo/pstricks">http://tug.org/mailman/listinfo/pstricks</a><br></blockquote></div><br>