[pstricks] pspicture: shift and nesting

Herbert Voss LaTeX at zedat.fu-berlin.de
Mon Jul 10 22:21:17 CEST 2006


Bernd Westphal wrote:

> The appended example illustrates a problem I have with nested pspicture
> environments.  If an enclosing pspicture uses the shift parameter, then the
> enclosed pspicture environments are also affected.

in this case use \raisebox (graphicx) instead:

\bigskip
\rule{1cm}{2pt}\raisebox{-2cm}{%
\begin{pspicture}(0,-2)(3,3)
   \psaxes(0,0)(0,-2)(3,3)
   \rput(1,1){%
     \psframebox{\begin{pspicture}(-0.5,0.25)(0.5,-0.25)
       \psframe[linecolor=blue](-0.5,0.25)(0.5,-0.25)
     \end{pspicture}}}
\end{pspicture}}\rule{1cm}{2pt}

Herbert





More information about the PSTricks mailing list