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

No Search Results


Yes: Click on the Overleaf menu icon above the file list, and set the "Main document" option to the .tex file you need. This will be the file that is compiled and previewed each time you return to your project.

Main-document-setting.png


In Overleaf v2, any file that contains a \documentclass command will be compiled if it's opened in the editor when you press the Recompile button. We made this change after lots of feedback from users in Overleaf v1 who wanted to be able to compile multiple documents inside one project, without needing to change the main file setting for the project.

We recommend that the main document .tex file is placed in the project's top level to ensure features to work correctly e.g. jump-to-location, word count, scripts like makeglossaries etc.


[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

[edit] Advanced TeX/LaTeX