[pstricks] Origin in (1994,0)

Jean-Côme Charpentier Jean-Come.Charpentier at wanadoo.fr
Fri Apr 28 20:21:13 CEST 2006

Denis Vergès a écrit :

> [...]
>>if you get something like "dimension too large" and no output in the 
>>picture, that I would be too interested in what's wrong, since this 
>>bothers me a lot sometimes.

You ask for a x-coor 1994. Your xunit is 0.85cm. Then, you ask for a 
1994\times0.85=1694.9cm. The max dimen for TeX is 2^{30}sp; that is, 
2^{14}pt, that is, 226.7054102670541in, that is, 575.8317420783174cm. 
TeX isn't happy and tell you that it is not happy :-)

>>Boris Dusek
>>On Friday 28 April 2006 14:52, Denis Vergès wrote:
>>>What's wrong in this \pspicture?
>>>Denis Vergès
>>>\psline(1994,67)(1995,59)(1996,90) \psdots(1994,67)(1995,59)(1996,90)

I don't know if some pst-* (or some pstricks macro) could deal such big 
numbers for coordinate. Waiting Herbert, you can write something like that:



   \gdef\xtranslation{#1}% \gdef or \def (or \edef, or \xdef) ?

%%%%% translated \psline %%%%%
   % initinialize coor list
   % initialize optional argument
   % do the translation
   \xscratch #1\relax
   \advance \xscratch \xtranslation
   \yscratch #2\relax
   \advance \yscratch \ytranslation
   % save translation in coor list
   % recursive call
   % call real \psline with coor list translated

%%%%% translated \psdots %%%%%
   \xscratch #1\relax
   \advance \xscratch \xtranslation
   \yscratch #2\relax
   \advance \yscratch \ytranslation



   Jean-Côme Charpentier

More information about the PSTricks mailing list