From 79d82d920124672fcbc7c452e07f7205e81e17ac Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Fri, 22 Nov 2019 19:18:49 -0500 Subject: Add configuration for AUCTeX. --- jakob.org | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'jakob.org') diff --git a/jakob.org b/jakob.org index d13d2cb..cdc4198 100644 --- a/jakob.org +++ b/jakob.org @@ -1620,6 +1620,34 @@ Include syntax highlighting when exporting as HTML. (setq org-html-htmlize-output-type 'css)) #+END_SRC +** LaTeX + +Enable parsing as described in the [[elisp:(info "(AUCTeX) Quick Start")][Quick Start]] AUCTeX manual. + +#+BEGIN_SRC elisp +(use-package tex + :straight auctex + :init + (setq TeX-auto-save t TeX-parse-self t) + (setq-default TeX-master nil) +#+END_SRC + +Use [[PDF][pdf-tools]] to read TeX output. + +#+BEGIN_SRC elisp + :init + (setq TeX-view-program-selection '((output-pdf "PDF Tools"))) +#+END_SRC + +Enable Flyspell and SmartParens, as writing LaTeX involves numerous matching +pairs ($, {, etc). + +#+BEGIN_SRC elisp + :hook + (TeX-mode . flyspell-mode) + (TeX-mode . smartparens-mode)) +#+END_SRC + ** Markdown #+BEGIN_SRC elisp -- cgit v1.3