[pstricks] Fwd: Create a random path

Herbert Voss Herbert.Voss at FU-Berlin.DE
Tue Jan 26 17:08:55 CET 2010


Am 26.01.2010 12:30, schrieb Marco Daniel:

> What is the problem in the minimal example?

Marco,

/text and /test is not the same :-)
You have to convert the integer to a string variable
first, before you can show it.

\documentclass{article}
\usepackage{pstricks}
\begin{document}

\begin{pspicture}(0,0)(8,6)
\pstverb{
/test realtime def % test is the same as realtime
0 0 moveto         % define current point
/Helvetica findfont 14 scalefont setfont % set a font
test 15 string cvs show  % call test and convert it to a string
/test usertime def
0 -14 moveto
test 15 string cvs show }
\end{pspicture}

\end{document}

Herbert


More information about the PSTricks mailing list