[pstricks] PSTricks Digest, Vol 119, Issue 1

Herbert Voss Herbert.Voss at FU-Berlin.DE
Tue Dec 4 23:24:00 CET 2012


Am 04.12.2012 13:36, schrieb Cyrille Piatecki:

>>> if I understand  in pst-tools \psPrintValue print the postscript
>>> calculated value and only that. How could I keep the value et reuse it.
>> on PS or TeX-Level ?

> Both

you need the latest pst-tools.tex from 
http://texnik.dante.de/tex/generic/pst-tools/
It knows the option VarName for saving the value.

\documentclass{minimal}
\usepackage{pst-math,multido}
\usepackage{pst-tools}
\def\showPSVal{ gsave 0 0 translate 1 -1 scale
   10 string cvs /Helvetica findfont 100 scalefont setfont  show grestore }
\SpecialCoor

\begin{document}

\psPrintValue[PSfont=Helvetica,xShift=-10,VarName=myVal]{ 1.44 ACOSH dup  }

\pstVerb{ myVal 10 string cvs 0 0 moveto show }

\vspace{3cm}
\multido{\iA=0+30}{12}{\rput(2;\iA){\pstVerb{ myVal \showPSVal grestore}}}

\end{document}


Herbert


More information about the PSTricks mailing list