From c34211c032c3b78bf2bd7894ea4210679f0dd363 Mon Sep 17 00:00:00 2001 From: Lars Tveito Date: Tue, 10 Mar 2020 20:55:41 +0100 Subject: [PATCH] Use latexmk for compilation by default --- init.org | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/init.org b/init.org index 6e5ac76..b333737 100644 --- a/init.org +++ b/init.org @@ -1037,6 +1037,21 @@ (add-to-list 'auto-mode-alist '("\\.tex\\'" . latex-mode)) #+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. #+BEGIN_SRC emacs-lisp