I just started to write my thesis and i want to organize my document in Latex using the \input command, so for example, the main file main.tex is like this:
\begin{document}
\input{chapter1}
\end{document}
and chapter1 have also nasted calls like this:
this chapter is devided into two main sections
\input{firstsection}
\input{secondsection}
besides, these sections have references to each others with \ref command and Latex could not resolve these references. I have read this here.
Is there a solution to solve this problem?
\include? – Heiko Oberdiek Jun 06 '14 at 15:30\input;\includecannot be nested. In opposite to\input, the references, table of contents, ... remain more or less intact, if an\includefile is excluded from compiling, because the auxiliary data of the\includefile are kept in a separate.auxfile. – Heiko Oberdiek Jun 06 '14 at 15:49\inputexpands to primitive\inputand it realizes only one input stream independent of the file. Macros for references cannot distinguish what file is currently open and read. – wipet Jun 06 '14 at 17:05