Skip to content

Commit

Permalink
improve .latexmkrc
Browse files Browse the repository at this point in the history
- more lualatex comments
- group extensions together
  • Loading branch information
koppor authored Jun 22, 2018
1 parent 803f4ed commit 82717b5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .latexmkrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#`-file-line-error` is similar to `--interaction nonstopmode`, but shows the concrete line number
#Remove it, it you want pdflatex to stop on errors
#Remove it, it you want lualatex to stop on errors
$pdflatex = 'lualatex -shell-escape -file-line-error --synctex=-1 %O %S';

#Use SumatraPDF instead of the default PDF viewer
Expand All @@ -8,12 +8,9 @@ $pdf_previewer = 'start "C:\Program Files\SumatraPDF\SumatraPDF.exe"';
#SumatraPDF updates automatically
$preview_mode = 0;

#automatically call pdflatex (instead of latex)
#automatically call lualatex/pdflatex (instead of latex)
$pdf_mode = 1;

#remove more files than in the default configuration
@generated_exts = qw(acn acr alg aux code ist fls glg glo gls glsdefs idx ind lof lot out thm toc tpt wrt);

add_cus_dep('glo', 'gls', 0, 'run_makeglossaries');
add_cus_dep('acn', 'acr', 0, 'run_makeglossaries');

Expand All @@ -26,4 +23,6 @@ sub run_makeglossaries {
};
}

#remove more files than in the default configuration
@generated_exts = qw(acn acr alg aux code ist fls glg glo gls glsdefs idx ind lof lot out thm toc tpt wrt);
$clean_ext .= ' %R.ist %R.xdy';

0 comments on commit 82717b5

Please sign in to comment.