From ea1e720ba6628cb89a974b0cd629661bb8c6ebf5 Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Wed, 25 Nov 2020 12:20:45 +0100 Subject: [PATCH] Use zathura as the Pdf viewer for latex --- doom.org | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/doom.org b/doom.org index 901908c..dc6e82b 100644 --- a/doom.org +++ b/doom.org @@ -2656,37 +2656,10 @@ Provides nice functions such as: - https://tex.stackexchange.com/questions/52179/what-is-your-favorite-emacs-and-or-auctex-command-trick - https://tex.stackexchange.com/questions/20843/useful-shortcuts-or-key-bindings-or-predefined-commands-for-emacsauctex -** Master file +** Basic Config #+begin_src emacs-lisp - (setq-default TeX-master nil) -#+end_src - -** Clean Output Files -#+begin_src emacs-lisp - (defun tdh-latex-clean () - "Clean LaTeX output using latexmk" - (interactive) - (async-shell-command - ;; command and parameters - "latexmk -c " - (shell-quote-argument buffer-file-name) - " &" - )) - - (map! :map LaTeX-mode-map - :n ",C" 'tdh-latex-clean) - - (add-hook 'TeX-mode-hook #'TeX-fold-mode) -#+end_src - -** PDF Viewer -#+begin_src emacs-lisp - (setq TeX-view-program-selection '((output-pdf "Zathura"))) - (setq TeX-source-correlate-mode t) - (setq TeX-source-correlate-start-server t) - (setq TeX-source-correlate-method 'synctex) - (setq TeX-view-program-list - '(("PDF Tools" TeX-pdf-tools-sync-view))) + (after! auctex + (setq +latex-viewers '(zathura pdf-tools))) #+end_src ** Bibtex