Skip to content

Coming from Overleaf

Luke Naylor edited this page Aug 30, 2025 · 1 revision

Many things work out of the box in Overleaf which you may find does not, by default, when you try the same project in Zed (things such a glossaries, knitr, asymptote...). The good news is that Overleaf does not have much special sauce when it comes to actually building the PDF, and uses latexmk by default just like this extension. However Overleaf uses a fairly large default config file (latexmkrc) found here. You can add the relevant parts to a latexmkrc file in your project folder (ideally to help others build your project too), which will then be read by latexmk when it is run by texlab if build-on-save is enabled (or yourself).

Here are some latexmkrc snippets for various things which you can toggle in the Overleaf UI:

image

Stop on first error:

$force_mode = 0; # 1 to not stop
image

Compiler:

$pdf_mode = 1; # to use pdflatex
$pdf_mode = 2; # tex -> ps -> pdf
$pdf_mode = 2; # tex -> dvi -> pdf
$pdf_mode = 4; # to use lualatex
$pdf_mode = 5; # to use xelatex

Main document:

@default_files = ('main.tex');

Clone this wiki locally