I am compiling a rather huge(9Mb) .tex file with lualatex.
The file consists of 5 chapters, and each chapter seems to get compiled fine.
However, when I run lualatex the full file, I am getting an error:
Code: Select all
! TeX capacity exceeded, sorry [number of destination names (dest_names_size)=1
31072].
\AtBegShi@Output ...ipout \box \AtBeginShipoutBox
\fi \fi
l.137656
clauses))
69764 words of node memory still in use:
2259 hlist, 7 vlist, 506 rule, 56 local_par, 1 dir, 116 math, 2785 glue, 893
kern, 166 penalty, 1599 glyph, 1745 attribute, 84 glue_spec, 1745 attribute_li
st, 2 temp, 10 if_stack, 2 shape, 56 pdf_dest, 8 pdf_action, 4 pdf_colorstack n
odes
avail lists: 1:2,2:7549,3:756,4:33,5:143550,6:10,7:5698,8:73,9:3823,10:14,11
:156
! ==> Fatal error occurred, no output PDF file produced!
locate texmf.cnf only gave me one result: /usr/share/texmf-dist/web2c/texmf.cnf
I tried adding
dest_names_size = 1000000
to the end of this file and running texhash, but this doesn't seem to change anything.
What is the proper way to set dest_names_size?
Line l.137656 is about a half of the document, so I only need to increase it three times.
The document is basically a lot of code listings printed out for archival purposes.
UPD:
For some reason this doesn't happen with XeLaTeX, only with luaLaTeX.