From d4d5da7c621dc564746912cf123e86860b0edae2 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Thu, 24 Oct 2024 19:04:41 -0700 Subject: [PATCH] Add LuaLaTeX to TeX-command-list --- init.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/init.el b/init.el index 6c18786..17db0f1 100644 --- a/init.el +++ b/init.el @@ -1378,6 +1378,12 @@ otherwise, call `bibtex-find-text'." (add-to-list 'auto-mode-alist '("/\\.latexmkrc\\'" . perl-mode)) (add-to-list 'auto-mode-alist '("\\.[tT]e[xX]\\'" . LaTeX-mode)) :config + (add-to-list 'TeX-command-list + `("LuaLaTeX" + ,(concat "lualatex %(file-line-error) %`%(extraopts) " + "%S%(PDFout)%(mode)%' %(output-dir) %t") + TeX-run-TeX nil (LaTeX-mode) + :help "Run LuaLaTeX")) (defun my/-auctex-texdoc-setup-env (oldfun &rest args) (let ((process-environment process-environment) (emacs-cmd (concat "emacsclient" (and (not (display-graphic-p)) " -nw"))))