[pstricks] Suggestions for \psPrintValue

Michael Sharpe msharpe at ucsd.edu
Mon Apr 27 05:42:12 CEST 2009


That's the sort of error you get when a recursion goes wild. There are  
several recursive procedures in the code, but it works OK on my setup  
(Mac/ TeXLive 2008), and from previous  experience, I'm 99\% sure that  
the system has little to do with it, and there must be a difference in  
some of the TeX files. can you put


near the top of your file and send the log?


On Apr 26, 2009, at 8:17 PM, Buddy Ledger wrote:

>> You might get some ideas from the appended file, which gives a way to
>> round a number given in either conventional form or in formats like
>> 1.23E-04 or -12.34e005, to a fixed number of decimal places. It works
>> entirely at the TeX level, so there is no need to call \psPrintValue
>> unless you have a number that is the result of a Postscript
>> computation. This is not a completed package---the handling of the
>> case where \decplaces<0 in not yet finished. Also, the size of  
>> numbers
>> handled is limited. The string of output digits, not counting the
>> period and sign, must be no more than 2^{31}, as it is stored in a
>> single count register, unlike the fp package. The other thing is that
>> \decplaces should have been handled as a keyword. See the end of the
>> file for usage and test examples.
> Thanks, Micheal.  I tryed running the code but I get an error (see  
> below).
> I'm running MikTex 2.7 on WindowsXP.  I am really interested in the  
> capability to read
> numbers in scientific notation.  To my knowledge (which is  
> admittedly limited on the subject)
> I don't believe anyone else has implimented a package to deal with  
> numbers in 1E-4 notation.
> It is important for me since I have many data files which are  
> formatted as such.
> ! TeX capacity exceeded, sorry [input stack size=5000].
> \hasanE #1E#2\@nil ->\hasanE #1
>                               E\@nil \xdef \@tmpA {#1}\xdef \@tmpB
> {#2}\ifx...
> l.177 12E-02 & \fmtnum{12E-02}
>                              \\
> No pages of output.
> Transcript written on New.log.
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks

More information about the PSTricks mailing list