Showing first {{hits.length}} results of {{hits_total}} for {{searchQueryText}}{{hits.length}} results for {{searchQueryText}}

A project can only have one main file at present—it's the one which loads when you visit the document.

A simple way of compiling another file is to put:

\input{other-file.tex}

as the first line in the main file—before even the document class. This will cause us to compile that file instead, and LaTeX will ignore the rest of the "main" file.

[edit] Overleaf guides

[edit] LaTeX Basics

[edit] Mathematics

[edit] Figures and tables

[edit] References and Citations

[edit] Languages

[edit] Document structure

[edit] Formatting

[edit] Fonts

[edit] Presentations

[edit] Commands

[edit] Field specific

[edit] Class files