[OS X TeX] include cannot be nested?

Charilaos Skiadas cskiadas at iwu.edu
Sat Nov 4 17:10:52 EST 2006


> On Nov 4, 2006, at 4:43 PM, Alain Schremmer wrote:
>> I have now spent a whole day trying to understand file paths up and
>> down folders and I think that I finally got to understand how LaTeX
>> works but now I am getting a message saying "include cannot be
>> nested". Since I would of course swear on anything that it used to,
>> I am now terminally stuck as I don't know what it really means and
>> what to do.
>
> \include's can't be nested. You would probably want to use \input for
> your exercises.
>
> http://www.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-
> html/ltx-245.html
>
> The following is from a blog post that I haven't managed to finish
> yet, about managing large projects in LaTeX. It's, as far as I
> understand, the differences between \include{afile} and \input{afile}:
>
> 1. You cannot have nested \include's, while you could have as many
> nested \input's as you like. This makes \input a great command to use
> for including libraries of custom commands and other preamble stuff.
> 2. \include'd files generate their own .aux files, while \input'ed
> files don't. I am guessing pdfsync might also not work with \input'ed
> files, but I haven't tested this.
> 3. \include'd files start on a new page no matter what. Depending on
> the document class used, they might even start on the first available
> odd-numbered page. This makes \include's perfect for starting a new
> chapter.
> 4. \include calls \clearpage right before starting its work. This
> means that any floats, like tables and figures, that haven't been
> rendered yet for one reason or another, will now be inserted.
>
>
> Hopefully someone will correct me if I'm wrong in any of the above.
>
> Haris


------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the MacOSX-TeX mailing list