To write a large document, if I understand correctly, the structure is as follows:
\documentclass{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage[left=1.5cm, right=1.5cm, top=1.5cm, bottom=1.5cm]{geometry}
%%and other package
%document principal
\begin{document}
\include{ch1}
\include{ch2}
\include{ch3}
\end{document}
My questions concern the packages and the sectionning that I must use: if for a chapter, I need a particular package, should I put them in the ch1.tex file or in the main file?
I searched for information about best practices for writing a book but couldn't find anything that matched my search)
\includedon't have their own preamble, so all packages need to go in the main file. – Marijn Jan 19 '23 at 16:40\usepackage[utf8]{inputenc}is no longer needed since a few years, utf8 is the default input encoding. – Marijn Jan 19 '23 at 16:42\begin{document}? – Nicolas Jan 19 '23 at 16:44\includeonlyif you want to speed up intermediate compilations, and then just start writing... – Marijn Jan 19 '23 at 16:58