I'm using the longtable package (together with xcolor for alternating row colors and booktabs for elegant table headers) to generate a huge table. And by huge, I mean it has more than 900 lines and takes up more than 29 pages. However, I'm getting the following error:
TeX capacity exceeded, sorry [main memory size=3000000].
My code is similar to this one:
\newcolumntype{D}{>{\raggedright\arraybackslash}m{54mm}}
% Plus a few other new column types
% Alternating colors starting on 3rd row
\definecolor{tabular-odd-color}{gray}{0.90}
\definecolor{tabular-even-color}{gray}{0.97}
\rowcolors{3}{tabular-odd-color}{tabular-even-color}
\begin{longtable}{DTCNAHHHHHH}
\toprule
col1 & col2 & col3 & col4 & col5 & col6 & col7 & col8 & col9 & col10 & col11 \\
\midrule
\endhead
% LOTS of rows here. I mean, maybe a few thousand, taking up 30, 40 or more pages.
\bottomrule
\end{longtable}
How can I avoid exceeding the TeX capacity?
(I've already read this page, but my rows already have blank lines between them, thus that solution does not apply to me.)
lualatexon your document would be all what you need if you are not interested in any of the extra goodies LuaTeX provides. – خالد حسني Sep 24 '10 at 12:50texlive-luatexis not stable yet, and on my Ubuntu server, there is nolualatexexecutable. I guess I'll wait some more months/years until giving lualatex another try. – Denilson Sá Maia Oct 01 '10 at 20:12lualatex. It took about 1.5GB of RAM to compile a huge 827-page longtable, but it worked! (after messing a bit with the preamble because of incompatibilities with lualatex, see also http://tex.stackexchange.com/questions/28642/frequently-loaded-packages-differences-between-pdflatex-and-lualatex ) – Denilson Sá Maia Oct 29 '11 at 04:45