[OS X TeX] Skim SKAutoReloadFileUpdate
Joseph C. Slater PE, PhD
joseph.slater at wright.edu
Thu Dec 18 23:27:06 CET 2008
On Dec 18, 2008, at 5:13 PM, Enrico Franconi wrote:
>
> On 18 Dec 2008, at 17:09, Adam R. Maxwell wrote:
>
>> Depends on how clever you want to be :). The trivial way is to
>> test the exit value of the process and see if it's zero (success)
>> or anything else (failure). Practically, you probably wouldn't
>> like that, since TeX returns nonzero pretty frequently, even though
>> it created a usable PDF. You could count the number of error:
>> lines it spits out, but that might get hairy.
>>
>> The easiest solution is probably a compromise: wait until all of
>> your tex/bibtex/index processes are done, then try to reload the
>> file. That eliminates the race condition, so you're left with
>> potentially trying to open a garbage file.
>
> And how this behaviour would be *in practice* better than a
> potential rare crash of Skim that by the way I (nor other users,
> apparently) never had in a continuous use of Skim?
> So, it seems to me that the auto feature is the best compromise to
> have a smooth workflow.
Has anyone else used latexmk as a solution to this? I finally got
around to writing a latexmkrc file that works (for me). It preempts
the auto feature by executing a revert when completed, but a) it would
be nice if that dialog box didn't show up in the future (since the
answer would thus always be "no"), and b) it causes every file in Skim
to revert because I couldn't get placeholders to work. I will probably
post this once I'm more comfortable with it (someone else looks at it
and tries it out).
Joe
More information about the macostex-archives
mailing list