Created
July 11, 2012 19:31
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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
I was missing the
interaction=nonstopmode
to have xelatex not stop with a prompt on syntax errors ! thanks !