diff options
| author | tslil clingman <> | 2020-06-11 11:58:17 -0400 |
|---|---|---|
| committer | tslil clingman <> | 2020-06-11 11:58:17 -0400 |
| commit | 384789b0a382e9015b6ef4f303533eaf1c9f3988 (patch) | |
| tree | 6cb78949cc36979ca0112e1415aa93deeff07197 /emacs/inits/24-latex.el | |
| parent | cac0bbfcd2584d1cdbaf7b0a4f3cc992ca9ccffa (diff) | |
pdf-tools was fun while it lasted, but external synctex is more convenient
Diffstat (limited to 'emacs/inits/24-latex.el')
| -rw-r--r-- | emacs/inits/24-latex.el | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/emacs/inits/24-latex.el b/emacs/inits/24-latex.el index a13a35b..a123c04 100644 --- a/emacs/inits/24-latex.el +++ b/emacs/inits/24-latex.el @@ -1,4 +1,4 @@ -;; Time-stamp: <2020-05-15 14:27:58 (tslil@forfeit)> +;; Time-stamp: <2020-06-11 11:56:37 (tslil@bison)> (defvar latex-template-dir (expand-file-name "~/academic/typeset/latex-templates")) (defun prompt-latex-file-template () @@ -37,20 +37,14 @@ populated from the directory *latex-template-dir*" (use-package unfill :ensure t) -(use-package pdf-tools - :demand - :ensure t - :defer t) - (use-package latex :ensure auctex - :ensure pdf-tools :bind (:map LaTeX-mode-map ("'" . better-TeX-insert-single-quote) ("TAB" . LaTeX-indent-line) ("M-q" . unfill-paragraph) ("M-SPC" . (lambda () (interactive) (insert ?\\))) ; Never used just-one-space - ("C-c C-g" . pdf-sync-forward-search)) + ("C-c C-d" . TeX-view)) :hook (LaTeX-mode . (lambda () (latex-setup-visual-aesthetics) @@ -74,8 +68,7 @@ populated from the directory *latex-template-dir*" (defun latex-setup-special-minor-modes () (interactive) (cdlatex-mode t) - (cdm-mode) - (pdf-tools-install)) + (cdm-mode)) (defun latex-setup-completions () (interactive) @@ -98,14 +91,7 @@ populated from the directory *latex-template-dir*" (setq TeX-open-quote old-open TeX-close-quote old-close)))) - (defun pdf-tools-display-buffer-use-some-frame (fun &rest args) - (let ((display-buffer-overriding-action '(display-buffer-use-some-frame))) - (apply fun args))) - :config - (advice-add 'pdf-sync-backward-search-mouse :around #'pdf-tools-display-buffer-use-some-frame) - (advice-add 'pdf-sync-forward-search :around #'pdf-tools-display-buffer-use-some-frame) - (dolist (entry '(("diagram") ("vdiagram") ("diagram*") ("vsubdiagram") ("vsubdiagrams"))) (push entry LaTeX-indent-environment-list)) (setq TeX-command-list '(("XeLaTeX" "xelatex %t" @@ -116,8 +102,8 @@ populated from the directory *latex-template-dir*" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX") ("BibTeX" "bibtex %s" TeX-run-BibTeX nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode context-mode) :help "Run BibTeX") - ("View externally" "%V" TeX-run-discard-or-function t t :help "Run External Viewer") - ("View" "(find-file \"%o\")" TeX-run-function nil t :help "Run Viewer") + ("View" "%V" TeX-run-discard-or-function t t :help "Run External Viewer") + ("View internally" "(find-file \"%o\")" TeX-run-function nil t :help "Run Viewer") ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document") ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files") ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help "Delete generated intermediate and output files") @@ -171,7 +157,7 @@ populated from the directory *latex-template-dir*" (?* ("\\times" "\\otimes" "\\star")) (?+ ("+" "\\oplus")) (?- ("\\dashv" "\\vdash" "\\setminus")) - (?. ("\\sq" "\\circ" "\\cdot")) + (?. ("\\circ" "\\sq" "\\cdot")) (?0 ("\\emptyset" "\\circ")) (?< ("\\leftarrow" "\\leftharpoonup" "\\xleftarrow")) (?> ("\\to" "\\rightharpoonup" "\\xrightarrow")) |
