-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.latexmkrc
22 lines (20 loc) · 836 Bytes
/
.latexmkrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env perl
$latex = 'latex -synctex=1';
$latex_silent = 'latex -synctex=1 -interaction=batchmode';
$bibtex = 'bibtex';
$dvipdf = 'dvipdfmx %O -p a4 -o %D %S';
$makeindex = 'mendex %O -o %D %S';
$max_repeat = 5;
if ( $^O eq 'darwin' ) {
$pdf_mode = 3; # generates pdf via dvipdfmx
# Use Skim as a previewer
$pdf_previewer = "open -ga /Applications/Skim.app";
# Prevent latexmk from removing PDF after typeset.
# This enables Skim to chase the update in PDF automatically.
$pvc_view_file_via_temporary = 0;
} elsif ( $^O eq 'linux' ) {
#$pdf_mode = 3; # generates pdf via dvipdfmx
$pdf_mode = 0; # generates only dvi
$pdf_previewer = "okular"; # Use Okular as a previewer
$pvc_view_file_via_temporary = 0;
}