Emacs: LaTeX preview in a buffer.

This commit is contained in:
tastytea 2019-03-29 20:01:33 +01:00
parent 6746b974b9
commit 7ecaa38b5a
2 changed files with 14 additions and 10 deletions

22
init.el
View File

@ -1,5 +1,5 @@
;;; init.el --- tastytea's Emacs init file.
;;; Time-stamp: <2019-03-29 19:09:17 CET>
;;; Time-stamp: <2019-03-29 20:02:34 CET>
;;; Commentary:
;;; I am using this file with Emacs 26, but most of it will probably work with
@ -654,21 +654,25 @@
(TeX-auto-save t) ; Enable parse on save
(TeX-PDF-mode t) ; PDF mode (rather than DVI-mode)
(TeX-engine 'xetex)
;; To use pdf-tools with auctex.
;; https://emacs.stackexchange.com/a/21764/21935
(TeX-view-program-selection '((output-pdf "PDF Tools")))
(TeX-view-program-list '(("PDF Tools" TeX-pdf-tools-sync-view)))
:mode
("\\.tex\\'" . LaTeX-mode))
("\\.tex\\'" . LaTeX-mode)
:config
;; To have the buffer refresh after compilation.
(add-hook 'TeX-after-compilation-finished-functions
#'TeX-revert-document-buffer))
;; Auto complete for LaTeX.
(use-package company-auctex
:hook
(LaTeX-mode . company-auctex-init))
;; (use-package pdf-tools
;; :custom
;; (mouse-wheel-follow-mouse t)
;; :mode
;; ("\\.pdf\\'" . pdf-tools-install)
;; :bind
;; ("C-c C-g" . pdf-sync-forward-search))
(use-package pdf-tools
:mode
("\\.pdf\\'" . pdf-tools-install))
;;;;;;;;;;;;;;;;;;;; File formats ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(use-package adoc-mode

View File

@ -1,2 +1,2 @@
127.0.0.1:51313 19961
127.0.0.1:51313 4814
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh