Adding Several LaTeX Files to a Project - JonasEngstrom/overleaf-article-template GitHub Wiki

If more than one LaTeX file is needed in a project, the make_new_file.py script can be used to make a copy of the default main.Rmd file with a new name. It downloads the file from the template repository on GitHub, so it needs an internet connection to work.

Run the script with the following command:

./make_new_file.py <desired name of new file>

Note that you do not have to specify a file extension, as the script uses the command line argument to create both a .Rmd file, a .tex file, and adds a .pdf file to the .gitignore file in the overleaf submodule.