[pstricks] Pstricks-add documentation...

Werner Grundlingh wgrundlingh at gmail.com
Sat Jun 11 20:26:52 CEST 2011


This historical version (Nov 27, 2006) of pstricks-add documentation
contains a definition of \pstScalePoints(xscale,yscale){xPS}{yPS}:
  http://elias.rhi.hi.is/latex/generic/pstricks-add/pstricks-add-doc.pdf
However, the latest version on CTAN (Jan 29, 2011) only contains an
example where \pstScalePoints(...,...){...}{...} is used:
  http://www.ctan.org/pkg/pstricks-add

Why was this dropped from the documentation?

My inquiry stems from the following minimal example:

\documentclass{article}
\usepackage{pstricks,pstricks-add}
\begin{document}
\begin{pspicture}(10,10)
	\psset{xunit=15mm,yunit=10mm}% <- blue/red dots in different locations
%	\psset{unit=10mm} \pstScalePoints(1.5,1){}{}% <- blue/red dots in
same location
	\SpecialCoor%
	\psset{linecolor=black} \qdisk(0,0){5pt}%
	\psset{linecolor=red} \qdisk(2;30){5pt}%
	\psset{linecolor=blue} \qdisk(!2 30 cos mul 2 30 sin mul){5pt}%
\end{pspicture}
\end{document}

The first \psset{...} command has no effect on the second \qdisk(){} -
thereby leaving the polar coordinates unchanged by the respective x-
and y-scaling, and consequently showing two disks (red and blue)
indifferent locations. However, the second \psset{...} command
performs both x- and y-scaling, regardless of whether in cartesian
(postscript) or polar coordinates.

Werner


More information about the PSTricks mailing list