Force default use lualatex as PDF creator and clean more file types

This commit is contained in:
Gerard Vermeulen 2022-04-22 18:52:28 +02:00
parent f748f65bff
commit 526a2ffea3

View File

@ -719,6 +719,8 @@ variable in section are compatible. The local variable ~compile-command~ in the
#+caption: Tangle the Latexmk resource file. #+caption: Tangle the Latexmk resource file.
#+name: lst:latexmkrc #+name: lst:latexmkrc
#+begin_src perl :tangle latexmkrc :comments none #+begin_src perl :tangle latexmkrc :comments none
# pdf creator
$pdf_mode = 4; # 4 means lualatex
# pdf previewer and update pdf previewer # pdf previewer and update pdf previewer
$pdf_previewer = "emacsclient -e '(find-file-other-window %S)'"; $pdf_previewer = "emacsclient -e '(find-file-other-window %S)'";
$pdf_update_method = 4; # 4 runs a command to force the update $pdf_update_method = 4; # 4 runs a command to force the update
@ -726,7 +728,7 @@ variable in section are compatible. The local variable ~compile-command~ in the
# see for instance glossary.latexmkrc # see for instance glossary.latexmkrc
add_cus_dep( 'acn', 'acr', 0, 'makeglossaries' ); add_cus_dep( 'acn', 'acr', 0, 'makeglossaries' );
add_cus_dep( 'glo', 'gls', 0, 'makeglossaries' ); add_cus_dep( 'glo', 'gls', 0, 'makeglossaries' );
$clean_ext .= " acr acn alg bbl glo gls glg ist lol run.xml"; $clean_ext .= " acr acn alg bbl dvi glo gls glg ist lol nav run.xml snm synctex.gz";
sub makeglossaries { sub makeglossaries {
my ($name, $path) = fileparse( $$Psource ); my ($name, $path) = fileparse( $$Psource );
return system "makeglossaries -d '$path' '$name'"; return system "makeglossaries -d '$path' '$name'";