[pstricks] \psscalebox only certain parameters...

Werner Grundlingh wgrundlingh at gmail.com
Fri Feb 25 20:37:48 CET 2011


Consider the following minimal example:

\documentclass{article}
\usepackage{pstricks}
\begin{document}
\begin{pspicture}(10,10)
  \psset{linewidth=1pt}%
  \psframe(1,1)(4,4)% Frame 1
  \psscalebox{2}{\psframe(2,2)(5,5)}% Frame 2
\end{pspicture}
\end{document}

"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.

Thanks in advance,
Werner


More information about the PSTricks mailing list