Make latexmkrc useful elsewhere

This commit is contained in:
Gerard Vermeulen 2021-11-30 18:04:16 +01:00
parent 9509458c72
commit 9aecaf4744

View File

@ -372,7 +372,7 @@ section [[#sec:local-variables][Local Variables]] (only visible in =org= files,
=pdf= files) shows how to use the =latexmkrc= file..
#+attr_latex: :options bgcolor=LightGoldenrodYellow
#+begin_src perl :tangle latexmkrc
#+begin_src perl :tangle latexmkrc :comments none
# pdf previewer and update pdf previewer
$pdf_previewer = "emacsclient -e '(find-file-other-window %S)'";
$pdf_update_method = 4; # 4 runs a command to force the update
@ -380,7 +380,7 @@ section [[#sec:local-variables][Local Variables]] (only visible in =org= files,
# see for instance glossary.latexmkrc
add_cus_dep( 'acn', 'acr', 0, 'makeglossaries' );
add_cus_dep( 'glo', 'gls', 0, 'makeglossaries' );
$clean_ext .= " acr acn alg bbl glo gls glg run.xml";
$clean_ext .= " acr acn alg bbl glo gls glg ist run.xml";
sub makeglossaries {
my ($name, $path) = fileparse( $$Psource );
return system "makeglossaries -d '$path' '$name'";