[pstricks] extend scope of user defined Postscript variable

Herbert Voss Herbert.Voss at FU-Berlin.DE
Mon Jun 29 17:07:20 CEST 2009


Alexander Grahn schrieb:

> I would prefere this one, because there is no need for files. However
> it is not possible to change the value of the variable in the middle of
> the document, `good bye!!!' is written 4 times to stdout during ps2pdf:
> 
> \documentclass{minimal}
> \usepackage{pstricks}
> 
> \begin{document}
> \special{! /hello (hello!!!) def}
> \pstVerb{SDict begin hello print end}
> foo
> \clearpage
> \pstVerb{SDict begin hello print end}
> foo
> \clearpage
> \special{! /hello (good bye!!!) def}

\pstVerb{SDict begin /hello (good bye!!!) def end}

> \pstVerb{SDict begin hello print end}
> foo
> \clearpage
> \pstVerb{SDict begin hello print end}
> foo
> \end{document}


Herbert


More information about the PSTricks mailing list