I'm preparing latex project containing few content tex files and a master file.
I'm looking for the solution how to compile, build project from the master file or from the content file itself...
From the master file i have, for example:
Code: Select all
main.tex
abstract.tex
Ch1.tex
Ch2.tex
Code: Select all
\documentclass{report}
\begin{document}
\input{abstract.tex}
\input{Ch1.tex}
\input{Ch2.tex}
\end{document}
Code: Select all
#ifndef MASTER_FILE
\documentclass{report}
\begin{document}
#endif
....
....
...
#ifndef MASTER_FILE
\end{document}
#else
\endinput
#endif
Any ideas how to achieve that?