[pstricks] extend scope of user defined Postscript variable

Herbert Voss Herbert.Voss at FU-Berlin.DE
Mon Jun 29 14:29:40 CEST 2009


Alexander Grahn schrieb:

> The print command on the second page of the document listed below raises
> an error during PS to PDF conversion, because the variable /hello,
> defined on the first page, does not survive the page break.
> 
> 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}


Herbert


More information about the PSTricks mailing list