After installing the required dependencies with homebrew, I was able to compile pdf-tools . But I cannot make it work (I cannot see the pdf on emacs after compiling)
I would like to know if somebody can post its .emacs config to make pdf-tools work since I have not been able to make it happen. I have tried several options, like the following (copy from somebody else):
(load "pdf-tools") ;;
(setq output-pdf "PDF Tools") ;;
(pdf-tools-install)
(setq TeX-view-program-selection '((output-dvi "Okular")
(output-pdf "PDF Tools") ;;
))
Or also
;; Use pdf-tools to open PDF files
(setq TeX-view-program-selection '((output-pdf "PDF Tools"))
TeX-source-correlate-start-server t)
;; Update PDF buffers after successful LaTeX runs
(add-hook 'TeX-after-TeX-LaTeX-command-finished-hook
#'TeX-revert-document-buffer)
But, after compiling a tex file (with C-c C-c with Auctex) and trying to see the pdf with the same command (and selecting View), I always get the error
Unknown PDF Tools viewer. Check the Tex-view-program-selection variable
I am sure I am missing a key config for making pdf-tools available or known to auctex/emacs, but cannot figure it out. Could you please post your config to get an inspiration from it? I have already checked install-pdf-tools-on-emacs-macosx, how-to-let-auctex-open-pdf-with-pdf-tools and how-to-use-pdf-tools-pdf-view-mode-in-emacs without success.
Thanks in advance.
Edit: Making already visited links more explicit.