Skip to content

Instantly share code, notes, and snippets.

@jgosmann
Last active February 16, 2017 21:06
Show Gist options
  • Save jgosmann/b689a2e6bc19d33eac54 to your computer and use it in GitHub Desktop.
Save jgosmann/b689a2e6bc19d33eac54 to your computer and use it in GitHub Desktop.
$lualatex = 'lualatex -synctex=1 %O %S';
$pdflatex = 'pdflatex -synctex=1 %O %S';
$xelatex = 'xelatex -synctex=1 %O %S';
$pdf_mode = 4; # 4 uses lualatex, set to 1 for pdflatex
add_cus_dep('nlo', 'nls', 0, 'nlo2nls');
sub nlo2nls {
system("makeindex \"$_[0].nlo\" -s nomencl.ist -o \"$_[0].nls\"");
}
add_cus_dep('glo', 'gls', 0, 'glo2gls');
sub glo2gls {
system("makeglossaries \"$_[0]\"");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment