I use org-mode for a lot of things, but two of them are now in conflict. The two use cases are (1) drafting assignments and exporting to LaTeX and (2) tracking my reference library using RefTeX. My default system PDF reader is Acrobat, which is great for reading and annotating PDFs. However, it's not so great when you're exporting from org to LaTeX, because it locks the file, meaning you have to close it to redo the export. Recently I added the following lines to my configuration on Windows to use SumatraPDF instead, because it allows for live updates of the file without closing:

    ((auto-mode . emacs)
     ("\\.mm\\'" . default)
     ("\\.x?html?\\'" . default)
     ("\\.pdf\\'" . "C:/SumatraPDF/SumatraPDF.exe %s")))))

The issue is that when I open PDF links from my reference library, they now (of course) open in SumatraPDF, when I would rather be using Acrobat, the system default. Is there a way to either (a) select a different PDF viewer only for org-mode exports or (b) specify to use the default PDF viewer when opening links from my reference notes file?

  • Maybe you could get Emacs Docview mode running just for checking the latex export? – Dieter.Wilhelm Nov 21 '15 at 13:20
  • File local variables for the pdf viewer maybe? – user2699 Nov 21 '15 at 18:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.