[pstricks] Parameterized graphics?
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Mon Dec 31 09:42:12 CET 2007
Johan Ekh schrieb:
> 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
> already exist.
use package calc
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{pstricks,multido}
\usepackage{calc}
\newlength\varI
\begin{document}
\setlength\varI{174.2pt-6.5pt}
\begin{pspicture}(6,6)
\multido{\n=0.0+22.5}{16}{%
\uput{0.5\varI}[\n](4,4){\psdot[dotsize=0.2](0,0)}}
\end{pspicture}
\end{document}
happy new year and good luck in 2008 to all of you
Herbert
More information about the PSTricks
mailing list