----- Original Message ----- From: "Jean-Pierre Chretien" <[EMAIL PROTECTED]>
To: <lyx-users@lists.lyx.org>
Sent: Tuesday, July 19, 2005 12:49 AM
Subject: Re: Automatic view DVI file after update DVI



Date: Mon, 18 Jul 2005 23:22:54 +0100
From: Paul Smith <[EMAIL PROTECTED]>
To: "lyx-users@lists.lyx.org" <lyx-users@lists.lyx.org>
Subject: Automatic view DVI file after update DVI

Dear All

Systematically, when I update the DVI file, I want to view the DVI
file. So, it would be nice to be possible to configure LyX so that
clicking on Update --> DVI led automatically to the DVI viewer. Can it
be done with LyX 1.3.6?

Running Update->DVI assumes that a viewer is already open from a previous View->DVI, and the viewer should update automagically upon completion of the LyX compilations (xdvik).

Update->PS works alike with ghostview and gv (File->Reopen)

Update->PDF works alike with gv (File->Reopen), with xpdf (typing R for Reopen in the xpdf window)
but you must close/open with acroread (5.0/Solaris here).

--
Jean-Pierre



I saw this batfile which could become a bash script, maybe helpful?
http://wiki.lyx.org/LyX/LyXWinTips
View PDF in full-page mode - advanced version

You may try also to following: Download pdftools and extract pdfopen.exe and pdfclose.exe into your ~\Lyx\bin directory. Create a text file PDFview.cmd containing

    if not exist "%~dpn1-tmp%~x1" goto :go
    pdfclose --file  "%~dpn1-tmp%~x1"
    del "%~dpn1-tmp%~x1"
    :go
    copy %1 "%~dpn1-tmp%~x1"
    pdfopen --file "%~dpn1-tmp%~x1"
    exit

in the same directory. If you select View ? PDF (pdflatex), this will show the current document as a PDF. The error that you get if the Reader is already open will be avoided, but the file will be named slightly differently to achieve that result.

Best regards,
Stephen

Reply via email to