# [pstricks] TeX memory exceeded

hh-brasil at bol.com.br hh-brasil at bol.com.br
Mon Jun 28 15:12:16 CEST 2010

```Do you work with letters instead of numbers? E.g. 1 should be A, 2 would be B and so on?
hh

Em 27/06/2010 08:14, Antoine Pairet < antoine at pairet.be > escreveu:
Hello,
What is the correct way to deal with TeX memory problems?

I am plotting a large amount of data from a .dat file with \listplot and
the memory capacity of TeX is exceeded.
The error I got:

Runaway definition?
->/ArrowA { moveto } def /ArrowB { } def  0.8 SLW 0  setgray  /ArrowA
\ETC.
! TeX capacity exceeded, sorry [main memory size=3000000].
\pst at code ...5 D -4.0613 D -3.6773 D -3.521 D -3.4
307 D -3.3236 D
-3.0443 D ...
l.34   \listplot[plotNo=27,plotNoMax=40]{\bspa}{\bspa}

If I plot less data, ie up to 26, no problem occurs. The problem does
not come from the data itself. Indeed, I am able to plot data from 20 to
40 by commenting the 20 first lines of the listplot block.

How should this error be tackled? Should I increase TeX main memory? If
so, how is it properly done?
Should I split the data into several .dat files or is the memory usage