[pstricks] gsave grestore
Herbert Voss
Herbert.Voss at alumni.TU-Berlin.DE
Mon May 31 12:36:57 CEST 2004
Alain Liétard wrote:
> I don't understand what mean these commands.
the same as in PostScript. Look at the following example.
It shows only one example for the use of \gsave and \grestore
Herbert
\documentclass{article}
\usepackage{pstricks}
\usepackage{pst-plot}
\parindent=0pt
\begin{document}
\begin{pspicture}(3,3)
\pscustom[linewidth=2pt]{%
\psplot{0}{3}{x 180.0 mul 1.5 div sin 1.5 mul 1.5 add}
% \gsave
\psline(3,3)(0,3)%
\fill[fillcolor=lightgray,fillstyle=solid]
% \grestore
}
\end{pspicture}
\bigskip
\begin{pspicture}(3,3)
\pscustom[linewidth=2pt]{%
\psplot{0}{3}{x 180.0 mul 1.5 div sin 1.5 mul 1.5 add}
\gsave
\psline(3,3)(0,3)% this line is now not drawn
\fill[fillcolor=lightgray,fillstyle=solid]
\grestore
}
\end{pspicture}
\end{document}
--
http://TeXnik.de/
http://PSTricks.de/
http://perce.de/LaTeX/math/Mathmode-TeX.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
More information about the PSTricks
mailing list