mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 07:28:31 +00:00
Use latexmk for compilation by default
This commit is contained in:
parent
56095aae61
commit
c34211c032
15
init.org
15
init.org
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user