[pstricks] Re: force pstricks object to be on the top layer

Herbert Voss Herbert.Voss at alumni.TU-Berlin.DE
Tue Feb 4 19:33:35 CET 2003


les ander schrieb:

> i would like certain of the graphics generated via pstricks
> to be on top of other things might be drawn on top of it. 
> is there a parameter to make a drawing to be on top of all the others?
> thanks

This is anexample for placing a pstricks drawing on
top of a given eps image.
the demo eps is available at

ftp://ftp.dante.de/tex-archive/macros/generic/boxedeps/rose.eps

Herbert


\documentclass[12pt]{article}
\usepackage{graphicx}
\usepackage{pstricks}
\parindent0pt
\newsavebox{\Imagebox}
\begin{document}

A roof on a rose ... :-)

\savebox{\Imagebox}{\includegraphics{/home/voss/rose}}
  \centering
     \begin{pspicture}(\wd\Imagebox,1.5\ht\Imagebox)
       \rput[lb](0,0){\usebox{\Imagebox}}
       \rput[r](\wd\Imagebox,\ht\Imagebox){Upper Right}
       \rput[l](0,\ht\Imagebox){Upper Left}
       \psline(0,\ht\Imagebox)
              (0.5\wd\Imagebox,1.5\ht\Imagebox)
              (\wd\Imagebox,\ht\Imagebox)
     \end{pspicture}
\end{document}



More information about the PSTricks mailing list