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

foldersinput

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?

\newcommand\subdir{mysubdir}

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.