ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Closing PDF file at each run
@ 2006-02-27  7:22 Hooman Javidnia
  2006-02-27  9:48 ` Taco Hoekwater
  2006-02-27 12:02 ` Mojca Miklavec
  0 siblings, 2 replies; 11+ messages in thread
From: Hooman Javidnia @ 2006-02-27  7:22 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Closing PDF file at each run
  2006-02-27  7:22 Closing PDF file at each run Hooman Javidnia
@ 2006-02-27  9:48 ` Taco Hoekwater
  2006-02-27 10:26   ` Johan Sandblom
  2006-02-27 12:02 ` Mojca Miklavec
  1 sibling, 1 reply; 11+ messages in thread
From: Taco Hoekwater @ 2006-02-27  9:48 UTC (permalink / raw)




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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Closing PDF file at each run
  2006-02-27  9:48 ` Taco Hoekwater
@ 2006-02-27 10:26   ` Johan Sandblom
  2006-02-27 10:58     ` Taco Hoekwater
  0 siblings, 1 reply; 11+ messages in thread
From: Johan Sandblom @ 2006-02-27 10:26 UTC (permalink / raw)


2006/2/27, Taco Hoekwater <taco@elvenkind.com>:

[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?

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Closing PDF file at each run
  2006-02-27 10:26   ` Johan Sandblom
@ 2006-02-27 10:58     ` Taco Hoekwater
  2006-02-28  6:29       ` Hooman Javidnia
  0 siblings, 1 reply; 11+ messages in thread
From: Taco Hoekwater @ 2006-02-27 10:58 UTC (permalink / raw)




Johan Sandblom wrote:
> 2006/2/27, Taco Hoekwater <taco@elvenkind.com>:
> 
> [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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Closing PDF file at each run
  2006-02-27  7:22 Closing PDF file at each run Hooman Javidnia
  2006-02-27  9:48 ` Taco Hoekwater
@ 2006-02-27 12:02 ` Mojca Miklavec
  1 sibling, 0 replies; 11+ messages in thread
From: Mojca Miklavec @ 2006-02-27 12:02 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Closing PDF file at each run
  2006-02-27 10:58     ` Taco Hoekwater
@ 2006-02-28  6:29       ` Hooman Javidnia
  2006-02-28  8:01         ` Taco Hoekwater
  2006-02-28  9:10         ` Hans Hagen
  0 siblings, 2 replies; 11+ messages in thread
From: Hooman Javidnia @ 2006-02-28  6:29 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Closing PDF file at each run
  2006-02-28  6:29       ` Hooman Javidnia
@ 2006-02-28  8:01         ` Taco Hoekwater
  2006-02-28  9:10         ` Hans Hagen
  1 sibling, 0 replies; 11+ messages in thread
From: Taco Hoekwater @ 2006-02-28  8:01 UTC (permalink / raw)




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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Closing PDF file at each run
  2006-02-28  6:29       ` Hooman Javidnia
  2006-02-28  8:01         ` Taco Hoekwater
@ 2006-02-28  9:10         ` Hans Hagen
  2006-03-01  5:19           ` Hooman Javidnia
  1 sibling, 1 reply; 11+ messages in thread
From: Hans Hagen @ 2006-02-28  9:10 UTC (permalink / raw)


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
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Closing PDF file at each run
  2006-02-28  9:10         ` Hans Hagen
@ 2006-03-01  5:19           ` Hooman Javidnia
  0 siblings, 0 replies; 11+ messages in thread
From: Hooman Javidnia @ 2006-03-01  5:19 UTC (permalink / raw)


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?

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Closing PDF file at each run
  2006-03-01  3:51 ` FabriceL.
@ 2006-03-01  9:03   ` Hans Hagen
  0 siblings, 0 replies; 11+ messages in thread
From: Hans Hagen @ 2006-03-01  9:03 UTC (permalink / raw)


FabriceL. wrote:
> Hooman Javidnia a �crit :
>   
>> 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
>>
>>     
> Hi. This is interesting, since I have the same problem with WinEdt and 
> Acrobat (on Windows). I had notice
> that is there is not input file in my ConTeXt file, then, when I compile 
> by WinEdt interface,
> the pdf file is closed with no problem. If I use an "\input file.tex" 
> command in the ConTeXt file,
> then one ask me a file name for the pdf, since the file can not be 
> closed automatically. I had
> consult WinEdt mailing  list too, and no solution there. I have no 
> solution, but from the symtom
> I describe, I suspect this is a ConTeXt thing...
>   
yiu can only close a pdf document with pdfclose that has been opened by pdfopen 

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
-----------------------------------------------------------------

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Closing PDF file at each run
       [not found] <B3C24EA955FF0C4EA14658997CD3E25E01B5C452@CAHIER.gst.uqam.ca>
@ 2006-03-01  3:51 ` FabriceL.
  2006-03-01  9:03   ` Hans Hagen
  0 siblings, 1 reply; 11+ messages in thread
From: FabriceL. @ 2006-03-01  3:51 UTC (permalink / raw)



Hooman Javidnia a écrit :
>
> 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
>
Hi. This is interesting, since I have the same problem with WinEdt and 
Acrobat (on Windows). I had notice
that is there is not input file in my ConTeXt file, then, when I compile 
by WinEdt interface,
the pdf file is closed with no problem. If I use an "\input file.tex" 
command in the ConTeXt file,
then one ask me a file name for the pdf, since the file can not be 
closed automatically. I had
consult WinEdt mailing  list too, and no solution there. I have no 
solution, but from the symtom
I describe, I suspect this is a ConTeXt thing...

Fabrice.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-03-01  9:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-27  7:22 Closing PDF file at each run Hooman Javidnia
2006-02-27  9:48 ` Taco Hoekwater
2006-02-27 10:26   ` Johan Sandblom
2006-02-27 10:58     ` Taco Hoekwater
2006-02-28  6:29       ` Hooman Javidnia
2006-02-28  8:01         ` Taco Hoekwater
2006-02-28  9:10         ` Hans Hagen
2006-03-01  5:19           ` Hooman Javidnia
2006-02-27 12:02 ` Mojca Miklavec
     [not found] <B3C24EA955FF0C4EA14658997CD3E25E01B5C452@CAHIER.gst.uqam.ca>
2006-03-01  3:51 ` FabriceL.
2006-03-01  9:03   ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).