Skip to content

Instantly share code, notes, and snippets.

@simics-ja
Last active April 15, 2020 23:57
Show Gist options
  • Save simics-ja/48a3f84e8498128f1b165710021858ba to your computer and use it in GitHub Desktop.
Save simics-ja/48a3f84e8498128f1b165710021858ba to your computer and use it in GitHub Desktop.
[.latexmkrcの設定例] #LaTeX
#!/usr/bin/env perl
# 日本語原稿の設定例
@default_files=('main.tex');
# 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