Skip to content

Instantly share code, notes, and snippets.

@davegurnell
Created July 11, 2012 19:31
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save davegurnell/3092640 to your computer and use it in GitHub Desktop.
Save davegurnell/3092640 to your computer and use it in GitHub Desktop.
Sample latexmk file to provide continuous compilation and preview with MacTex on OS X
# Sample latexmk configuration to use xelatex and Preview on OS X.
# Should help if you want to use latexmk with MacTeX.
#
# 1. Install MacTeX
# 2. Put this file in ~/.latexmkrc
# 3. Continuously recompile and preview your document with the command:
# latexmk -pvc myfile.tex
$pdflatex = 'xelatex -interaction=nonstopmode %O %S';
$pdf_previewer = 'open -a Preview "%S"';
$pdf_mode = 1;
$postscript_mode = $dvi_mode = 0;
@MartyLake
Copy link

I was missing the interaction=nonstopmode to have xelatex not stop with a prompt on syntax errors ! thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment