Closing PDF file at each run
![](https://secure.gravatar.com/avatar/b7b0cae2ca6fd7018a2462412ee855b4.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/36fe2e1a70ee9905ec5b6d8e53503684.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/b7b0cae2ca6fd7018a2462412ee855b4.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/b7b0cae2ca6fd7018a2462412ee855b4.jpg?s=120&d=mm&r=g)
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?
![](https://secure.gravatar.com/avatar/6114858d84b0f40cf715f12237ab67a1.jpg?s=120&d=mm&r=g)
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