[pstricks] basic arithmetics in pstricks without defining nodes

Patrick Drechsler patrick at pdrechsler.de
Fri Nov 9 03:06:31 CET 2007


Hi,

how do I do simple arithmetics in tex and use them in pstricks?

I am thinking along the lines of:

\SpecialCoor%
\def\MyRadius{0.7cm}%
\def\MyDiameter{! \MyRadius 2 mul}%
%
\psline(\MyRadius,0)(\MyDiameter,0)

I know this will not work. I am wondering what the correct approach
would look like...

TIA,

Patrick 
-- 
Es gibt nichts, was die Vorstellung von einem persönlichen Gotte
unterstützen könnte. Ich bin Atheist. Es gab große Evolutionsbiologen,
die an Gott geglaubt haben. Aber ich habe nie verstanden, wie man im
Gehirn zwei völlig getrennte Fächer haben kann, und in einem liegt die
Wissenschaft und im anderen die Religion. (Ernst Mayr)




More information about the PSTricks mailing list