Skip to content

Instantly share code, notes, and snippets.

@tani
Created July 10, 2021 14:36
Show Gist options
  • Save tani/57f5ffcda0abc6b3f135876771d58237 to your computer and use it in GitHub Desktop.
Save tani/57f5ffcda0abc6b3f135876771d58237 to your computer and use it in GitHub Desktop.
lualatex('-shell-escape -synctex=1 -interaction=nonstopmode -halt-on-error');
$aux_dir = 'build';
$out_dir = 'build';
$makeindex = 'upmemdex';
$bibtex = 'upbibtex';
$biber = 'biber --bblencoding=utf8 -u -U --output_safechars';
sub pdflatex {
$pdf_mode = 1;
$latex = $pdflatex = "pdflatex $_[0]";
}
sub uplatex {
$pdf_mode = 3;
$dvipdf = 'dvipdfmx';
$latex = "uplatex $_[0]";
}
sub lualatex {
$pdf_mode = 4;
$latex = $lualatex = "lualatex $_[0]";
}
sub xelatex {
$pdf_mode = 5;
$latex = $xelatex = "xelatex $_[0]";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment