I'm using 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 this 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?
(by the way, I'm using pdflatex from texlive)
(I've already read this page, but my rows already have blank lines between them, thus that solution does not apply to me.)