:PROPERTIES: :ID: ae476916-f23f-4004-8b8a-bebc690e65f3 :END: #+title: pdf-tools #+filetags: :EMACS: PDF Tools is an Emacs package for rendering PDF in Emacs. It is intended to replace doc-view and work well with org-annotate and Roam. It works with [[id:f52339f6-db99-4b43-91fd-48e7a1957ab2][synctex]] and [[id:3dfde3f4-2cc0-4356-a147-d4afd599e731][auctex]]. The packages in Emacs are currently not working (as of <2023-02-18 Sat>) and it must be installed via [[id:d88b7b60-742d-4bc0-8b48-3fbcfad2373d][pacman]] or [[id:294012b3-5b0a-4527-a981-2f397378c0d2][AUR-Helpers]]. The corresponding package is called: emacs-pdf-tools-git. But without configuratiion it is not possible to use it like this, so you have to add the following to the con * Configuration #+begin_src emacs-lisp (use-package pdf-tools :pin manual :config (pdf-tools-install) (setq-default pdf-view-display-size 'fit-width) (define-key pdf-view-mode-map (kbd "C-s") 'isearch-forward) :custom (pdf-annot-activate-created-annotations t "automatically annotate highlights") ) (setq TeX-view-program-selection '((output-pdf "PDF Tools")) TeX-view-program-list '(("PDF Tools" TeX-pdf-tools-sync-view)) TeX-source-correlate-start-server t) (add-hook 'TeX-after-compilation-finished-functions #'TeX-revert-document-buffer) (add-hook 'pdf-view-mode-hook (lambda() (linum-mode -1))) ;kann auch in evince geändert werden: ;(setq TeX-view-program-selection '((output-pdf "Evince"))) ;; kann auch über M-x customize-group angepasst werden ;;pdf-view-blinken (evil-set-initial-state 'doc-view-mode 'normal) (add-hook 'doc-view-mode-hook (lambda () (setq blink-cursor-mode nil))) ;;pdf-view-blinken (evil-set-initial-state 'pdf-view-mode 'emacs) (add-hook 'pdf-view-mode-hook (lambda () (setq blink-cursor-mode nil))) #+end_src Im Evil-mode blinkt die Anzeige, cursor blinken muss also Deaktiviert werden (siehe oben). Funktioniert NICHT! mit linum mode.