[Tex/LaTex] How to work with command \input{filename.tex}


I'm writing a book with lots of chapters using a command \input{filename.tex} for each chapter in the book book.tex. How to make it not to have book.tex and all filename.tex in the same directory? Is it possible to have directory book.tex with subdirectories filename.tex?

Best Answer



Then you have to change only one name if the subdir changes. However, using \include instead of \input makes more sense if you are using chapters.

Related Question