I have an Overleaf project with two tex files like below:
main.tex
\documentclass[anonymous]{}
...
\begin{document}
\maketitle
...
\end{document}
review.tex
\documentclass[anonymous]{}
...
\begin{document}
\maketitle
...
\end{document}
These files are unrelated; they use different styles and don't share any extra documents. Now, I want to generate 2 different PDFs from each of them.
Since I'm using Overleaf, the perfect scenario should be to select the document, click on "Recompile," and get each PDF. However, it's not so simple.
How can I do it? It should be done in Overleaf.
I found 2 solutions here: The first didn't work (compilation error with more than 100 error messages), and the second cannot be done in Overleaf, I guess.
Overleaf help page informs that it should work, so I guess I'm doing something wrong, but I don't know exactly what.


Note 1: Any file that contains a \documentclass command, even if it's not designated the "main document", will be compiled if it's opened in the editor when you press the Recompile button.– David Carlisle Jan 23 '24 at 12:37