LaTeX forum ⇒ GeneralHow do I set the value for dest_names_size?

LaTeX specific issues not fitting into one of the other forums of this category.
Posts: 3
Joined: Tue Aug 27, 2019 4:18 am

How do I set the value for dest_names_size?

Postby lockywolf » Fri May 29, 2020 6:38 am

Hello, everyone.

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] [Expand/Collapse] [Download] ({untitled.tex})
  1. ! TeX capacity exceeded, sorry [number of destination names (dest_names_size)=1
  2. 31072].
  3. \AtBegShi@Output ...ipout \box \AtBeginShipoutBox
  4. \fi \fi
  5. l.137656
  6. clauses))
  7. 69764 words of node memory still in use:
  8. 2259 hlist, 7 vlist, 506 rule, 56 local_par, 1 dir, 116 math, 2785 glue, 893
  9. kern, 166 penalty, 1599 glyph, 1745 attribute, 84 glue_spec, 1745 attribute_li
  10. st, 2 temp, 10 if_stack, 2 shape, 56 pdf_dest, 8 pdf_action, 4 pdf_colorstack n
  11. odes
  12. avail lists: 1:2,2:7549,3:756,4:33,5:143550,6:10,7:5698,8:73,9:3823,10:14,11
  13. :156
  14. ! ==> Fatal error occurred, no output PDF file produced!

What I tried to do:

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.


For some reason this doesn't happen with XeLaTeX, only with luaLaTeX.

Return to “General”

Who is online

Users browsing this forum: No registered users and 7 guests