TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know it is not possible to nest one \include inside another, but what about \input? Is it possible to have something like:





and then in file1.tex:


in file2.tex;

share|improve this question
Did you try to do this? – Sigur Apr 10 '13 at 22:04
I did, and it worked, but I wanted to know if it was because of luck (or such a small example) and if I was going to have any problems in the future for using it this way – Mario S. E. Apr 10 '13 at 22:10
You can nest \input{macros} and You can't nest \include{files} files. See "When should I use \input vs. \include?" : Martin Scharrer Answer – texenthusiast Apr 10 '13 at 22:16
up vote 9 down vote accepted

Quoting Kopka and Daly, Guide to LaTeX, 4th edition (2004), p. 207:

\include commands may not be nested: They may only appear in the main processing file. However, an \input command may be given within a file that is \included.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.