[pstricks] basic arithmetics in pstricks without defining nodes
Patrick Drechsler
patrick at pdrechsler.de
Sat Nov 10 16:59:43 CET 2007
Juergen Gilg <gilg at acrotex.net> writes:
> another possible approach just came into my mind. Using the 'fp-package'.
> Some easy arithmetic operations are possible.
>
> \documentclass{article}
> \usepackage{pstricks,pstricks-add}
> \usepackage[nomessages]{fp}
> \begin{document}
> \def\MyRadius{0.7}
> \FPmul{\MyDiameter}{\MyRadius}{2}
> \begin{pspicture}(-4,-4)(4,4)
> \psset{unit=1cm}
> \SpecialCoor
> \psline(\MyRadius,0)(\MyDiameter,0)
> \end{pspicture}
> \end{document}
Thank you Juergen for demostrating these two alternative solutions!
Cheers,
Patrick
--
Snoopy (on being house-trained with a rolled-up newspaper):
It does tend however to give one a rather distorted view of the press!
More information about the PSTricks
mailing list