-
-
Save shanhaiying/853de7942abc5136e0cc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Use xelatex instead of pdflatex | |
$pdflatex = 'xelatex -synctex=1 -interaction=nonstopmode --shell-escape %O %S'; | |
# Always create PDFs | |
$pdf_mode = 1; | |
# Use Skim.app to preview generated PDFs | |
$pdf_previewer = 'open -a Skim.app %S'; | |
# Use continous mode by default | |
#$preview_continuous_mode = 1; | |
# output to the directory called output in the current directory | |
#$out_dir = './output'; | |
# file extensions to remove when cleaning | |
$clean_ext = 'acn acr alg aux bbl bcf blg brf fdb_latexmk glg glo gls idx ilg ind ist lof log lot out run.xml toc dvi'; | |
# make latexmk run makeglossaries automatically | |
add_cus_dep('glo', 'gls', 0, 'makeglossaries'); | |
add_cus_dep('acn', 'acr', 0, 'makeglossaries'); | |
sub makeglossaries { | |
system "makeglossaries $_[0]"; | |
if ( -z "$_[0].glo" ) { | |
open GLS, ">$_[0].gls"; | |
close GLS; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment