Skip to content
Simon D.A. Thomas edited this page May 27, 2021 · 9 revisions

Overleaf

Overleaf is an online LaTeX editor. It is great for collaborating on LaTeX files with co-authors on a publication, for giving and receiving feedback or for co-editing with your supervisor. It provides an online LaTeX editor and an online pdf display and deals with all the annoying parts of LaTeX for you. For example, you will not have to install LaTeX packages or deal with conflicting installations. Its only downside is that it may be slow to compile for large documents with many images or components. To go around this, you can either use Overleaf's draft mode, or compile your LaTeX files locally.

Local

https://www.latex-project.org/get/

Compiling LaTeX locally is (almost certainly) faster and won't be affected by your wifi or the Overleaf server going down.

However, you will have to deal with all the bunf files that LaTeX produces, and stop LaTeX complaining about errors. An example of doing this is given below.

# !/bin/bash
# file based on answer:
# https://tex.stackexchange.com/questions/140845/how-can-i-ignore-latex-error-while-compiling

filename=report # presentation

mkdir aux
mkdir output

mv aux/${filename}.lo* aux/${filename}.aux aux/${filename}.ilg .
mv aux/${filename}.ind aux/${filename}.toc .
mv aux/${filename}.bbl aux/${filename}.blg .
mv aux/${filename}.out aux/${filename}.asc .
mv aux/${filename}.snm aux/${filename}.fls aux/${filename}.run.xml .
mv aux/${filename}.nav aux/${filename}.dvi aux/${filename}.fdb_latexmk .
mv aux/${filename}.vrb  aux/${filename}-blx.bib .

pdflatex --interaction nonstopmode --shell-escape ${filename}.tex 
makeindex -c -s myindex.ist ${filename}.idx
bibtex ${filename}
makeindex -c -s myindex.ist ${filename}.idx 
pdflatex  --interaction nonstopmode  --shell-escape ${filename}.tex 


mv ${filename}.lo* *.aux ${filename}.ilg ${filename}.ind ${filename}.toc aux/
mv ${filename}.bbl ${filename}.blg ${filename}.out *.asc aux/
mv *.snm *.fls *.run.xml *.nav *.dvi *.fdb_latexmk *.vrb aux/
mv *-blx.bib aux/
mv *.pdf output/

Clone this wiki locally