Created
June 26, 2021 14:34
-
-
Save BonyChops/1e2cdad0a27e637c9c9fa66e8a3ca0b9 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env perl | |
# LaTeX | |
$latex = 'platex -synctex=1 -halt-on-error -file-line-error %O %S'; | |
$max_repeat = 5; | |
# BibTeX | |
$bibtex = 'pbibtex %O %S'; | |
$biber = 'biber --bblencoding=utf8 -u -U --output_safechars %O %S'; | |
# index | |
$makeindex = 'mendex %O -o %D %S'; | |
# DVI / PDF | |
$dvipdf = 'dvipdfmx %O -o %D %S'; | |
$pdf_mode = 3; | |
# preview | |
$pvc_view_file_via_temporary = 0; | |
if ($^O eq 'linux') { | |
$dvi_previewer = "xdg-open %S"; | |
$pdf_previewer = "xdg-open %S"; | |
} elsif ($^O eq 'darwin') { | |
$dvi_previewer = "open %S"; | |
$pdf_previewer = "open %S"; | |
} else { | |
$dvi_previewer = "start %S"; | |
$pdf_previewer = "start %S"; | |
} | |
# clean up | |
$clean_full_ext = "%R.synctex.gz" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment