[pstricks] extend scope of user defined Postscript variable

Alexander Grahn A.Grahn at fzd.de
Mon Jun 29 14:45:24 CEST 2009


On Mon, Jun 29, 2009 at 02:29:40PM +0200, Herbert Voss wrote:
>Alexander Grahn schrieb:
>> 
>> Is there a way to extend the scope of a user defined Postscript variable
>> in order to make it known throughout the whole document written in
>> TeX/LaTeX?
>
>\documentclass{minimal}
>\usepackage{pstricks}
>
>\begin{filecontents}{user.pro}
>/hello (hello!!!) def
>\end{filecontents}
>\pstheader{user.pro}
>
>\begin{document}
>\pstVerb{hello print}
>foo
>\clearpage
>
>\pstVerb{hello print}
>foo
>\end{document}
>

Thanks, Herbert

As I see, it is only possible by using a temporary file.

Kind regards,
Alexander


More information about the PSTricks mailing list