about summary refs log tree commit diff stats
path: root/.emacs.d/lisp/init-latex.el
blob: 90305a0aedb466d4ea3ae1eaaf5de6e4c97b3d87 (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
;;; init-latex.el --- LaTeX Configuration File -*- lexical-binding: t -*-
;;; Commentary:
;; Based on prelude-latex.el
;;; Code:

;; (use-package auctex
;;   :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