Skip to content

Commit

Permalink
Update `.latexmkrc'
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexaraWu committed Jun 3, 2021
1 parent 134aee2 commit 4bf422f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .latexmkrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Latexmk configuration file.

# Set environment variables.
#
# WARNING: Only works with version 4.59 or higher of latexmk.
#

# Set timezone.
$ENV{'TZ'}='Asia/Shanghai';
Expand All @@ -10,10 +11,16 @@ ensure_path( 'TEXINPUTS', './texmf//' );

# Use lualatex with latexmk.
# $pdf_mode = 4;

# Use xelatex with latexmk.
$pdf_mode = 5;

# Disable postscript and dvi output.
$postscript_mode = $dvi_mode = 0;

# Add common patterns for tex engines.
set_tex_cmds( '-synctex=1 %O %S' );

# Always try to embed fonts, ignoring licensing flags, etc.
$xdvipdfmx = 'xdvipdfmx -E -o %D %O %S';

Expand Down

0 comments on commit 4bf422f

Please sign in to comment.