On 17 Jul 2007, at 12:54 PM, Marc H. Scholl wrote:

> I'm using whizzytex (emacs mode for incremental reformatting of LaTeX
> documents). When trying out Skim as PDF viewer, I noticed that it
> does not auto-refresh the PDF view (since whizzytex uses copying of
> refreshed output file, I think).
>

Probably it writes the new file atomically, which is incompatible  
with Skim's auto-refresh feature (see below and the Wiki).

> It would be a great help, if the refresh function of Skim were
> available as a keystroke/menu item and -- better yet -- via an
> AppleScript command. Since whizzytex uses a shell script, it would be
> most natural to explicitly tell Skim to refresh after copying the new
> output PDF from within this script. All I'd need would be the
> corresponding functionality in Skim.
>

Telling Skim to refresh is by far the most reliable way to refresh,  
as the process that runs tex is the only one that knows when tex is  
finished. A 'revert' AppleScript command is supported in Skim 0.5. On  
the Wiki there is an example shell script to use it.

> (BTW: PDFView, which I understand was kind of a predecessor to Skim,
> did auto-refresh together with whizzytex...)
>

It uses a method of polling the file system to auto-refresh. This is  
very unreliable, especially with processes like latex (which write  
incrementally over a long time) and can easily lead to crashes (we  
know as we used the same method in the past). Moreover it can lead to  
inconsistent document states when loading after the file has been  
deleted, as the doucment itself keeps a reference to the file object  
rather than the path.

Christiaan

> Best
>       --Marc
> --
>   | Prof. Dr. Marc H. Scholl
>   |
>   |      Universitaet Konstanz
>   |      FB Informatik & Informationswissenschaft
>   |      D-78457 Konstanz, Germany
>   |      Tel: +49 (0)7531/88-4432, Fax: +49 (0)7531/88-3577
>   |      http://www.inf.uni-konstanz.de/~scholl

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Skim-app-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-users

Reply via email to