[Tex/LaTex] Compile your Overleaf project OFFLINE

compilingoverleaf

This is a continuation of the question asked by Giacomo Marchioro in What are the steps for compiling Overleaf projects offline and getting consistent results?

Indeed I have an Overleaf project which I want to compile offline. My project contains no errors in Overleaf.
In the project files, I've got output.tex file as my main document, latexmkrc file (copy/paste from https://www.overleaf.com/learn/how-to/How_does_Overleaf_compile_my_project%3F) and the different.tex files and images that form my project are located in folders.

I installed TexLive 2018 from: https://www.tug.org/texlive/acquire-netinstall.html
However, compiler latexmk -pdf does not appear.

I tried in TexStudio and it does not compile either. It does not find tables or documents which are placed inside two folders as for instance: Figures\Introduction\Figure_1.PNG

I need to send my project to the jury and I am a bit desperate!
I would greatly appreciate any help telling me how to do it or what I am missing in my code, compiler, installation… to make it work!

Best Answer

I just discovered the way to compile an Overleaf project with no problems, so I will answer to my own question in case someone can take advantage of it.

With a Mac and TexShop, using the compiler pdflatexmk works fine for the compilation. References, index and everything compiles perfectly :) Of course, making sure your project contains the latexmkrc file mentionned in the question above and no errors.

Related Question