Use latexmk for compilation by default

This commit is contained in:
Lars Tveito 2020-03-10 20:55:41 +01:00
parent 56095aae61
commit c34211c032

View File

@ -1037,6 +1037,21 @@
(add-to-list 'auto-mode-alist '("\\.tex\\'" . latex-mode)) (add-to-list 'auto-mode-alist '("\\.tex\\'" . latex-mode))
#+END_SRC #+END_SRC
Use [[http://mg.readthedocs.io/latexmk.html][latexmk]] for compilation by default.
#+BEGIN_SRC emacs-lisp
(add-hook 'LaTeX-mode-hook
(lambda ()
(add-hook 'hack-local-variables-hook
(lambda ()
(setq-local compile-command
(concat "latexmk -pdf -pvc "
(if (eq TeX-master t)
(file-name-base (buffer-name))
TeX-master))))
t t)))
#+END_SRC
Use ~biblatex~ for bibliography. Use ~biblatex~ for bibliography.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp