[pstricks] \psscalebox only certain parameters...

Herbert Voss Herbert.Voss at FU-Berlin.DE
Fri Feb 25 21:45:30 CET 2011


Am 25.02.2011 20:37, schrieb Werner Grundlingh:

> "Frame 1" has linewidth=1pt. However, "Frame 2" has linewidth=2pt as a
> result of being in the same group as:
>   \psset{linewidth=1pt}
> Is it possible to have \psscalebox only apply the scaling to certain
> parameters - linewidth in this case? That is, using the above example,
> where "Frame 2" actually typesets as
>   \psscalebox{2}{\psframe[linewidth=0.5pt](2,2)(5,5)}
> 
> Intuition here tells me that one should define a new parameter in
> order to "trick" \psscalebox. However, my expertise with such
> development is non-existent. My thought would be to have something
> like
>   \psscalebox{2}{\psframe[linewidth*=1pt](2,2)(5,5)}
> where the starred (*) version of linewidth implies that \psscalebox
> should leave that parameter unchanged.
> 
\documentclass{article}
\usepackage{pstricks}
\begin{document}
\begin{pspicture}(10,10)
  \psset{linewidth=1pt}%
  \psframe(1,1)(4,4)% Frame 1
  \psframe[unit=2](2,2)(5,5)% Frame 2
\end{pspicture}
\end{document}

Herbert


More information about the PSTricks mailing list