Skip to content

Instantly share code, notes, and snippets.

@yuqlid
Last active March 26, 2019 00:34
Show Gist options
  • Save yuqlid/d03146669e61f8eabbe4d6bf45ab5c51 to your computer and use it in GitHub Desktop.
Save yuqlid/d03146669e61f8eabbe4d6bf45ab5c51 to your computer and use it in GitHub Desktop.
latexmk設定ファイル
#!/usr/bin/env perl
# file .latexmkrc
# author Ryotaro Onuki, Yuki Kusakabe
# created_at 2019.01.25
# modified_at 2019.02.05
# modefied_at 2019.03.13(Yuki)
## latex commands
$latex = 'uplatex -synctex=1 -halt-on-error';
$latex_silent = 'uplatex -synctex=1 -halt-on-error -interaction=batchmode';
$bibtex = 'upbibtex -kanji=utf8';
$dvipdf = 'dvipdfmx %O -o %D %S';
$makeindex = 'mendex %O -o %D %S';
$max_repeat = 5;
## pdf mode
$pdf_mode = 3; # 0: none, 1: pdflatex, 2: ps2pdf, 3: dvipdfmx
## viewer settings
$pvc_view_file_via_temporary = 0;
if ($^O eq 'darwin') {
# OSX
$pdf_previewer = 'open -a Preview';
} elsif ($^O eq 'linux') {
# linux
$pdf_previewer = 'evince';
} else {
# Windows
$pdf_previewer = '"E:\Program Files\SumatraPDF\SumatraPDF.exe" -reuse-instance %O %S';
}
## output directory
$aux_dir = "build/";
$out_dir = "build/";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment