Some authors prefer to place their manuscript LaTeX source files in a subfolder, and other research artefacts (figures, tables, etc) in another subfolder. This example shows how this workflow can be maintained on Overleaf, by providing a top-level main.tex that pulls in the real main LaTeX file from the subfolder using the import package.
A quick demonstration of how flexible, customisable linguistics examples can be created with the expex package. Cross-referencing to the examples is also supported. For further information, see the package documentation for expex.