Demonstration of the subfiles package
för 6 år sedan
Creative Commons CC BY 4.0
subfiles package and class can help with typesetting multi-file projects, where subsidiary files will inherit the main file's preamble when they themselves are compiled (i.e. "set as main" in Overleaf projects.
Note, though, that at present .tex files inside a folder cannot be set as a project's main file.