TeX capacity exceeded when building documentation with release.sh
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
igraph |
Fix Released
|
Medium
|
Gábor Csárdi |
Bug Description
I often build the documentation using the convenient script release.sh. But I often get a "TeX capacity exceeded" error. Here are steps to reproduce the errors. Make sure you don't have the TeX environment variable "hash_extra" set; check the output of /usr/bin/env. Checkout trunk of igraph 0.6 and run the following commands:
$ autoreconf --install
$ ./configure --prefix=
$ make && make install
$ ./release.sh
Then I would get the following error snippet:
<quote>
Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `subscript' on input line 325073.
Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `subscript' on input line 325073.
! TeX capacity exceeded, sorry [hash size=65000].
\PageLabel ...ndafter \ifx \csname p@#1\endcsname
l.325144 {1}}
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on igraph-docs2.log.
make: *** [igraph-docs.pdf] Error 9
</quote>
The above can be fixed by increasing TeX's hash size as follows:
$ export hash_extra=65000
Or provide a fix in the file
doc/Makefile.am
A patch is attached for the latter approach.
Thanks! Added in revision #2292 (0.6-main).