Skip to content

Instantly share code, notes, and snippets.

@rwoeber
Forked from davegurnell/.latexmkrc
Last active February 25, 2016 07:15
Show Gist options
  • Save rwoeber/2921b86afcfa928a863d to your computer and use it in GitHub Desktop.
Save rwoeber/2921b86afcfa928a863d 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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment