summaryrefslogtreecommitdiff
path: root/jakob.org
diff options
context:
space:
mode:
authorJakob L. Kreuze2019-11-22 19:18:49 -0500
committerJakob L. Kreuze2019-11-22 19:18:49 -0500
commit79d82d920124672fcbc7c452e07f7205e81e17ac (patch)
tree5e41c9158f11456f31d459084fc5c42c235700ca /jakob.org
parent02690713fce9bf07eab876857be305e60afbf7dd (diff)
Add configuration for AUCTeX.
Diffstat (limited to 'jakob.org')
-rw-r--r--jakob.org28
1 files changed, 28 insertions, 0 deletions
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

© 2015 - 2026 Jakob L. Kreuze