Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Force Preview to reload a document' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Force Preview to reload a document
Authored by: vocaro on Jan 05, '06 08:44:20PM

There's a Revert menu under the File view, and this allows you to reload the document. It's also trivial to bind it to a keystroke

Interesting; I always thought Revert simply reverted changes. I never realized it reloaded the document. However, my script is still useful for two reasons:

  1. Even though you can bind Revert to a keystroke, programmatically reloading a document with a script is useful for LaTeX users like myself who rely on fine-tuned Makefiles for their workflow. For instance, instead of running "make tex" and then typing, say, Command+Shift+R to reload, I can just do "make show" which rebuilds the document and reloads it, saving me a step.
  2. The Revert command resets Preview to the first page of the document, which is very annoying when you're working on, say, page 17 and suddenly you're looking at page 1 and have to jump back. On the other hand, closing and re-opening the document, which is what my script does, keeps Preview on the same page.


[ Reply to This | # ]