[pstricks] Selcting \rput commands

Herbert Voss LaTeX at zedat.fu-berlin.de
Thu Feb 22 16:52:59 CET 2007


Adam Fenn schrieb:
> I have been using pstricks to create cartographic maps e.g.
>
> {\psset{unit=1600pt}
> \pspicture*(3.00000,2.30000)(3.26000,2.62000)
> \input symbols.dat
> \endpspicture
> }
>
> The file symbols.dat contains a list of records created from a
> database in the form
>
> \rput(3.31667,2.34189){\mysymbol}
>
> where \mysymbol is a custom symbol created in a \pspicture environment
> of which I have around fifty separate examples.
>
> My problem is that when I zoom in on my map e.g.
>
> {\psset{unit=5000pt}
> \pspicture*(3.12700,2.48000)(3.20000,2.60500)
> \input symbols.dat
> \endpspicture
> }
>
> I get the error 'dimension too large' for obvious reasons. However
> since the offending \rput commands fall outside the range of the
> \pspicture environment I do not need them.
>
> My question is, how can I read the file symbols.dat yet ignore all
> \rput commands which fall beyond the range of the \pspicture environment.

use instead
\psscalebox{...}{%
\psset{unit=1600pt}
\pspicture*(3.12700,2.48000)(3.20000,2.60500)
\input symbols.dat
\endpspicture%
}

Herbert



More information about the PSTricks mailing list