[texhax] arithmetic in pstricks coordinates

Herbert Voss Herbert.Voss at FU-Berlin.DE
Tue Jun 17 21:54:30 CEST 2008


Brandon Kuczenski schrieb:
> Hello all,
> 
> Is it possible to use arithmetic inside of PStricks coordinates? for 
> example, something like:
> 
> ...
> \def\boxsize{1.4}
> ...
> \begin{pspicture}(0,0)(10,10)
> \psframe(4,5)(6,5 + \boxsize)
> ...
> \end{pspicture}

\SpecialCoor
\psframe(4,5)(!6 5 \boxsize\space add)

or define
\def\boxsize{1.4 }

then you do not need the \space macro

Herbert


More information about the texhax mailing list