## -----------------------------------------------------------------
##
## Copyright (C) 2016 -- 202X by
##
## Haojun Yang
##
## -----------------------------------------------------------------
##
## Latexmk configuration file.
##
## -----------------------------------------------------------------

## Set related paths.
ensure_path( 'TEXINPUTS', 'Package//' );
ensure_path( 'BIBINPUTS', 'Bib//' );

## -----------------------------------------------------------------

## The following configurations are only for the local compilation!!!

## Use pdflatex with latexmk.
$pdf_mode = 1;

## Use xelatex with latexmk.
#$pdf_mode = 5;

## Disable messages output.
$silent = 1;

## Enable records output.
$recorder = 1;

## Set patterns for pdflatex engines.
$pdflatex = 'pdflatex -file-line-error -halt-on-error -interaction=nonstopmode -synctex=1 %O %S';

## Set patterns for xelatex engines.
$xelatex = 'xelatex -file-line-error -halt-on-error -interaction=nonstopmode -no-pdf -synctex=1 %O %S';

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

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

## Files to clean.
#$clean_ext = 'xdv';
