Welcome to the UK List of
TeX Frequently Asked Questions
on the Web

Searching

The index of Frequently Asked Questions about TeX is searchable.

Please enter your keyword here:   then press here: ,    or:
Google

Capacity exceeded — input levels

The error

! TeX capacity exceeded, sorry [text input levels=15].
is caused by nesting your input too deeply. You can provoke it with the trivial (Plain TeX) file input.tex, which contains nothing but:
\input input
In the real world, you are unlikely to encounter the error with a modern TeX distribution. TeTeX (used to produce the error message above) allows 15 files open for TeX input at any one time, which is improbably huge for a document generated by real human beings.

However, for those improbable (or machine-generated) situations, some distributions offer the opportunity to adjust the parameter max_in_open in a configuration file.


Go to previous question, or next question

Go to FAQ home.

URL for this question: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=inputlev

Comments, suggestions, or error reports? - see “how to improve the FAQ”.

This is FAQ version 3.28, released on 2014-06-10.