diff options
| author | Jakob L. Kreuze | 2019-11-22 19:18:49 -0500 |
|---|---|---|
| committer | Jakob L. Kreuze | 2019-11-22 19:18:49 -0500 |
| commit | 79d82d920124672fcbc7c452e07f7205e81e17ac (patch) | |
| tree | 5e41c9158f11456f31d459084fc5c42c235700ca /jakob.org | |
| parent | 02690713fce9bf07eab876857be305e60afbf7dd (diff) | |
Add configuration for AUCTeX.
Diffstat (limited to 'jakob.org')
| -rw-r--r-- | jakob.org | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -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 |