This commit is contained in:
Zelong Kuang
2026-03-20 00:44:25 +11:00
parent de97f6e1cd
commit 570d0275f1
13 changed files with 603 additions and 66 deletions

View File

@@ -22,9 +22,12 @@
(TeX-source-correlate-method 'synctex)
(TeX-display-help t)
(TeX-show-compilation nil)
(TeX-command-extra-options "-shell-escape")
:config
(add-hook 'LaTeX-mode-hook (lambda ()
(setq TeX-command-default "LaTeXMk")))
;; Format math as a Latex string with Calc
(add-hook 'LaTeX-mode-hook #'eglot-ensure)
(defun latex-math-from-calc ()
@@ -45,7 +48,7 @@
calc-prefer-frac t
calc-angle-mode rad)))))))
;; (setq TeX-view-program-selection '((output-pdf "PDF Tools")))
(add-hook 'TeX-after-compilation-finished-functions #'TeX-revert-document-buffer)
;; (add-hook 'TeX-after-compilation-finished-functions #'TeX-revert-document-buffer)
(setq reftex-plug-into-AUCTeX t)