[pstricks] xunit too large ?

Michael Sharpe msharpe at ucsd.edu
Fri Feb 23 20:46:40 CET 2007


To TeX, the maximum dimension is just under 16384pt, which is about  
5758mm. With \xunit=2.8mm, 2003 is stored by PStricks in a dimension  
register with value 2003*2.8mm=5608.4mm. With \xunit=2.9mm, you get  
2003*2.9mm=5808.7mm, exceeding the maximum allowed dimension. This  
means you have to be prepared to use some workaround when using large  
numbers in PStricks.

Michael Sharpe

On Feb 23, 2007, at 7:50 AM, Denis Vergès wrote:

> Hello In this file :
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> \documentclass[10pt]{article}
> \usepackage[latin1]{inputenc}
> \usepackage{lscape}
> \usepackage{pstricks,pst-plot,pst-tree}
> \newcommand{\R}{\mathbb{R}}
> \newcommand{\N}{\mathbb{N}}
> \newcommand{\D}{\mathbb{D}}
> \newcommand{\Z}{\mathbb{Z}}
> \newcommand{\Q}{\mathbb{Q}}
> \newcommand{\C}{\mathbb{C}}
> \setlength{\textheight}{23,5cm}
> \setlength{\voffset}{-1,5cm}
>
> \usepackage{fancyhdr}
> \usepackage[frenchb]{babel}
> \begin{document}
> \begin{landscape}
> \psset{xunit=2.8mm,yunit=0.06mm}
> \begin{pspicture}(1993,1000)(2011,2200)
> \psaxes[linewidth=1.5pt,Ox=1993,Dx=2,Oy=1000,Dy=100](1993,1000)
> (2011,2200)
> \psline(1993,1590)(2011,1950)
> \multido{\n=1993.0+0.5}{37}{\psline[linewidth=0.4pt](\n,1000)(\n, 
> 2200)}
> \multido{\n=1000+50}{25}{\psline[linewidth=0.4pt](1993,\n)(2011,\n)}
> \psdots[dotstyle=+](1994,1550)(1995,1650)(1996,1600)(1997,1750)
> (1998,1700)(1999,1750)(2000,1650)(2001,1850)(2002,1700)(2003,1800)
> \psdots[dotstyle=+,dotangle=45](1994,1150)(1995,1300)(1996,1350)
> (1997,1350)(1998,1225)(199,1350)(2000,1500)(2001,1500)(2002,1650)
> (2003,1500)
> \end{pspicture}
> \end{landscape}
> \end{document}
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> The max value iof xunit is 2.8mm. Why ?
> Since xunit=2.9mm LaTeX says :
> ! Dimension too large.
> <recently read> \@psunit
>
> Thanks for your help.
> Denis Vergès
>
>
> _______________________________________________
> pstricks mailing list
> pstricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
>




More information about the PSTricks mailing list