about summary refs log tree commit diff stats
path: root/.emacs.d/lisp/init-latex.el
blob: 8aa243d4feb23248ec22295d2a73242a1d41bedf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
;;; init-latex.el --- LaTeX Configuration File -*- lexical-binding: t -*-
;;; Commentary:
;; Based on prelude-latex.el
;;; Code:

;; (use-package auctex
;;   :defer t
;;   :config
;;   (require 'smartparens-latex)
;;   (setq-default TeX-master nil)
;;   (when (eq system-type 'darwin)
;;     (setq TeX-view-program-selection
;;           '((output-dvi "DVI Viewer")
;;             (output-pdf "PDF Viewer")
;;             (output-html "HTML Viewer")))
;;     (setq TeX-view-program-list
;;           '(("DVI Viewer" "open %o")
;;             ("PDF Viewer" "open %o")
;;             ("HTML Viewer" "open %o"))))
;;   :custom
;;   (TeX-auto-save t)
;;   (TeX-parse-qself t)
;;   (TeX-close-quote "")
;;   (TeX-open-quote "")
;;   ;; use pdflatex
;;   (TeX-PDF-mode t)
;;   :hook LaTeX-mode . (lambda ()
;;                        (abbrev-mode +1)
;;                        (turn-on-auto-fill)
;;                        ;; (LaTeX-math-mode (LaTeX-math-mode 1)) ;; alternative to the below
;;                        (turn-on-cdlatex)))
;; 
;; (use-package cdlatex)

(provide 'init-latex)
;;; init-latex.el ends here