Skip to content

Commit

Permalink
chore: update latexmk config
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexaraWu committed Jul 16, 2024
1 parent 7aa4da3 commit 4decc56
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .latexmkrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#

# Set timezone.
$ENV{'TZ'}='Asia/Shanghai';
$ENV{'TZ'} = 'Asia/Shanghai';

# Ensure './texmf//' is in '$TEXINPUTS'.
# Prepended local directories to the search paths.
ensure_path( 'TEXINPUTS', './texmf//' );
# ensure_path( 'OSFONTDIR', './texmf/fonts//' );

# PDF generate method
# PDF generate method:
# - 1 pdfLaTeX
# - 3 LaTeX + DVIPDFMx
# - 4 LuaLaTeX
Expand All @@ -19,8 +20,14 @@ $pdf_mode = 5;
# 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';
# Run bibtex or biber whenever it appears necessary,
# always delete .bbl files in a cleanup.
$bibtex_use = 2;

# Files to clean.
$clean_ext = 'bbl glo gls hd loa run.xml thm xdv';
# Use dvipdfmx to convert .dvi to .pdf, and xdvipdfmx for .xdv,
# always try to embed fonts, ignoring licensing flags, etc.
$dvipdf = 'dvipdfmx -E %O -o %D %S';
$xdvipdfmx = 'xdvipdfmx -E %O -o %D %S';

# Extra files to clean.
$clean_ext .= ' loa';

0 comments on commit 4decc56

Please sign in to comment.