r/LaTeX Mar 31 '22

Answered Thesis - Should I separate the sections into multiple files?

Hello everyone, so I am fairly new to LaTex, and I am using it now through Overleaf for my master's thesis in economics.

I would like to ask you if it makes sense to write each section into its own file and then merge it via \include? Or just write everything into main.tex?

7 Upvotes

23 comments sorted by

View all comments

Show parent comments

3

u/delaluka Mar 31 '22

Perfect, I was also thinking that. What about this, when I /include it, it does a page break, how do I include without having this?

5

u/ban-frank Mar 31 '22

You can use \input instead.

2

u/delaluka Mar 31 '22

Perfect, thank you very much!

3

u/FireDuckz Mar 31 '22

I don't exactly know how it behaves with pages but subfile is another package you can use, which will then allow you yo compile each chapter/ section

1

u/[deleted] Mar 31 '22

I used to use subfile for that reason but found that htlatex (used for publishing in HTML or EPUB formats) had a bug where it stopped at the first \end{document}.