Closing PDF file at each run
Hi, When compiling a file in SciTE using F7, if the file, is already open in Adobe Acrobat, the compilation stops and asks for a new file name to write the PDF file to. I think the normal behavior would be to automatically close the current instance of the file in Acrobat and compile it again. Is there something wrong with my installation, or this is a bug? Regards, -- Hooman
Hooman Javidnia wrote:
Hi,
When compiling a file in SciTE using F7, if the file, is already open in Adobe Acrobat, the compilation stops and asks for a new file name to write the PDF file to. I think the normal behavior would be to automatically close the current instance of the file in Acrobat and compile it again.
Is there something wrong with my installation, or this is a bug?
Automatic re-opening of the file only works if you start by opening the file from F7 (so that it is 'controlled' by texexec). This is a known limitation in the Reader --that cannot re-read a file on its own-- and windows --that uses a mandatory file locking mechanism--. Texexec uses a pair of programs by Fabrice Popineau to make Acrobat automatically close and reopen the document. But this only works if it can control the file opening and closing from the start. Cheers, Taco
2006/2/27, Taco Hoekwater
Texexec uses a pair of programs by Fabrice Popineau to make Acrobat automatically close and reopen the document. But this only works if it can control the file opening and closing from the start.
Interesting. I found no likely suspects among the arguments listed by texexec --help. Is this feature only available in the Scite setting? Johan
Cheers, Taco _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden "What is wanted is not the will to believe, but the will to find out, which is the exact opposite" - Bertrand Russell
Johan Sandblom wrote:
2006/2/27, Taco Hoekwater
: [snip]
Texexec uses a pair of programs by Fabrice Popineau to make Acrobat automatically close and reopen the document. But this only works if it can control the file opening and closing from the start.
Interesting. I found no likely suspects among the arguments listed by texexec --help. Is this feature only available in the Scite setting?
You need the pair " --pdf --autopdf " on the texexec commandline. Cheers, Taco
On Mon, 27 Feb 2006, Taco Hoekwater wrote:
Texexec uses a pair of programs by Fabrice Popineau to make Acrobat automatically close and reopen the document. But this only works if it can control the file opening and closing from the start.
You need the pair " --pdf --autopdf " on the texexec commandline.
Thanks Taco for the explanation. When I compile my tex files by F7 the command which is executed is texmfstart newtexexec.rb --autopdf --pdf myfile.tex but still the PDF is not refreshed for the second run. I am using Acrobat 7. I read in WinEdt's mailing list that Adobe Acrobat has changed its caption from version 6 onwards. Could this be a problem related to the versions of Acrobat? Thanks, -Hooman
Hooman Javidnia wrote:
but still the PDF is not refreshed for the second run. I am using Acrobat 7. I read in WinEdt's mailing list that Adobe Acrobat has changed its caption from version 6 onwards. Could this be a problem related to the versions of Acrobat?
I wouldn't think so. Perhaps texexec cannot find pdfopen? (I am out of my league now, not using windows myself) Cheers, Taco
Hooman Javidnia wrote:
but still the PDF is not refreshed for the second run. I am using Acrobat 7. I read in WinEdt's mailing list that Adobe Acrobat has changed its caption from version 6 onwards. Could this be a problem related to the versions of Acrobat?
it works ok here; no caption i sinvolved afaik does it work from the console? Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Tue, 28 Feb 2006, Hans Hagen wrote:
Hooman Javidnia wrote:
but still the PDF is not refreshed for the second run. I am using Acrobat 7. I read in WinEdt's mailing list that Adobe Acrobat has changed its caption from version 6 onwards. Could this be a problem related to the versions of Acrobat?
it works ok here; no caption i sinvolved afaik
does it work from the console?
No, it doesn't work. From the messeage at the end of the compilation, I can see that 'pdfopen' can't be found on the system. Taco's guess was correct. Is this command part of TeX implementation or I should download it from somewhere?
On 2/27/06, Hooman Javidnia wrote:
Hi,
When compiling a file in SciTE using F7, if the file, is already open in Adobe Acrobat, the compilation stops and asks for a new file name to write the PDF file to. I think the normal behavior would be to automatically close the current instance of the file in Acrobat and compile it again.
This is not the answer to your question, but perhaps it could help you. I started using GhostView for viewing my own PDF files. It doesn't lock the file, it refreshes the view each time the file changes and keeps the document open on the same page & position with the same magnification. So if you're working on page 137 of your document and need proper magnification, you don't need to close the document, compile, open, go to page 137, adjust magnification and repeat this step again each time you make some change. Mojca
participants (5)
-
Hans Hagen
-
Hooman Javidnia
-
Johan Sandblom
-
Mojca Miklavec
-
Taco Hoekwater