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).
latextwo or three times in the Makefile to get the references right, and by the time Skim reads it from the first update, it has already been updated a second time. But that's just a guess (it usually works, but invariably, at some point it will stop working until I refresh manually). – asmeurer Dec 9 '12 at 0:28latexseveral times per make. – asmeurer Dec 9 '12 at 0:29