# “Tex capacity exceeded.” with beamer [closed]

I use MikTex 2.9 and am compiling a beamer presentation. I have 100+ pages. The file compiles if I comment out about half of the frames. I managed one presentation by compiling the two halves one after the other and combining the two pdfs later. This, however, is a big headache to manage outlines and reference.

The exact message is:

Tex capacity exceeded. sorry. [input stack size = 5000].

Increasing the stack size to 50000 is to no avail. Can that be due to large number of frames, or since the outline frame cannot hold all the topics. I simply could not have any clue. Any ideas??

-
Welcome to TeX.SX! That error is usually produced by a wrong definition, such as \renewcommand{\foo}{something \foo} trying to redefine a command in terms of itself. –  egreg Apr 13 '12 at 10:06
@egreg: Using \foo after your redefinition will overflow the main memory. To overflow the input stack it must be the other way round: \renewcommand{\foo}{\foo something} –  Ulrike Fischer Apr 13 '12 at 10:24
@UlrikeFischer Yes, thank you. The point is that the OP should know that redefining a command in terms of itself can't be done in a naïve way. –  egreg Apr 13 '12 at 10:26
Thank you so much. I indeed had a stray redefinition of at two places: –  agautam Apr 13 '12 at 10:32
@agautam Did that resolve the issue, then? If so, we'll probably close this as "too localised" simply to ensure that open questions really are open. –  Andrew Stacey Apr 13 '12 at 10:41
show 1 more comment

## closed as too localized by Marco Daniel, Thorsten, Martin Scharrer♦Apr 13 '12 at 12:49

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.