;;; latex.el --- Settings for LaTeX. -*- lexical-binding: t; -*- ;; Time-stamp: <2020-03-15T14:27:07+0100> ;;; Commentary: ;;; Code: (use-package tex-site :straight auctex :if (executable-find "xetex") :functions (TeX-revert-document-buffer) :custom (TeX-parse-self t) ; Enable parse on load. (TeX-auto-save t) ; Enable parse on save (TeX-PDF-mode t) ; PDF mode (rather than DVI-mode) (TeX-engine 'xetex) :mode ("\\.tex$" . LaTeX-mode) :config ;; To have the buffer refresh after compilation. (add-hook 'TeX-after-compilation-finished-functions #'TeX-revert-document-buffer) ) ;; Auto complete for LaTeX. (use-package company-auctex :after (auctex company) :hook (LaTeX-mode . company-auctex-init) ) (provide 'text/latex) ;;; latex.el ends here