Make Preview automatically reload PDF without switching to it

pdfpreview

If I change the contents of a PDF file that is open in Preview, it automatically reloads it when I switch to the program. Is there a way to make it do this without explicitly switching to the program?

The reason is that I am writing LaTeX, and I would like to see the updated PDF, but switching between Preview and back is a little annoying each time. For now, I have a line in my Makefile that just does

open $(FILEPREFIX).pdf
open -a iTerm

every time it builds the document (I use emacs in the terminal as my text editor), but even this is a little annoying, especially since I would like to write a hook in emacs that automatically builds the document at regular intervals, and this would cause it to jump away from the editor.

P.S. I know that Skim can do this. But I've found its autoupdating to be unreliable (i.e., sometimes it just stops doing it altogether, and I have to manually reload the document; if someone knows how to fix that, I would appreciate that as well).

Best Answer

I have never had problems with Skim not being able to keep up, but I use latex-makefile which generates temporary PDFs under other names until the very last pass. Perhaps you could try using that and see if it works, or adjusting your own Makefile similarly?