On Mon, 05 Nov 2012 20:21:52 -0400, Robert Adolle said:
> Complete statement :
>
> "tex capacity exceeded ; input stack size = 5000 ,
>
> If you really absolutely need more capacity,
>
> you can ask a wizard to enlarge me."
>
>
> What wizard ? How to get it ?
> Thanks...
>
> R.
>
Let me try to explain it this way. If you were to run the following
Python program (call it forkbomb.py):
=======================================
#!/usr/bin/python
def fork(number):
print number
# if number > 100:
# return
fork(number+1)
fork(1)
=======================================
You get the following error message:
RuntimeError: maximum recursion depth exceeded
Does that mean you should increase Python's recursion depth? No way.
You could increase it to a million, and it would simply take the
program another second or so to bomb. The recursion depth error is
caused by the program being bad -- specifically that it has nothing to
tell it when to quit recursing (because those two lines are commented
out). I'd go ten to one that this is similar to what is happening in
your document -- something in your document is getting run over and
over again until TeX breaks, and that's happening because there's
something wrong with your program.
But I could be wrong. So test my hypothesis like this. Make a LyX
document, with no fonts or styles or document preamble or layout file,
that is 50 times the size of the document that's bombing.
Using LyX and Vim, I just created a 31MB LyX file. It took about 10
seconds to load it, and about 1.5 minutes to compile it. It's 9140
pages long, full of text. No error message about TeX capacity.
slitt@mydesk:~$ ls -lh junk.lyx
-rw-rw-r-- 1 slitt slitt 31M 2012-11-05 20:12 junk.lyx
slitt@mydesk:~$ wc junk.lyx
720789 6907026 32493767 junk.lyx
slitt@mydesk:~$ pdftk junk.pdf dump_data
InfoKey: Creator
InfoValue: TeX output 2012.11.05:2018
InfoKey: Producer
InfoValue: dvipdfmx (20090708)
InfoKey: CreationDate
InfoValue: D:20121105201916-05'00'
NumberOfPages: 9140
SteveT
Steve Litt * http://www.troubleshooters.com/
* http://twitter.com/stevelitt
Troubleshooting Training * Human Performance