I am writing a book. I am trying to build a preamble in such a way that there is master.tex and different files for different chapters, preface, contents etc. I am 4/10 in latex knowledge. I will be highly obliged if somebody help me to build a master latex preamble to write a book. Thanks
The basic structure would be to have some directory,
You would probably want to isolate your macros in its own file, like
Note you would want to keep track of the front matter apart from the main-matter (see, e.g., this thread for example).
Then your book would be