Discussion:
WinEdt 8.2 and Sumatra with Forward Search
Ralf Heckmann
2014-06-25 18:25:08 UTC
Permalink
Hi,

I have a problem with the latest version of WinEdt and Sumatra.

After compiling, clicking the Open-PDF-with-Forward-Search icon, or by
shift + F8 Sumatra opens two instances: an empty one and that one
showing the actual document at the appropriate place (forward search
works as expected). Shift + Ctrl + R opens only one instance.

I can not remember that behaviour with 8.1. A quick test with the latest
version of 7.1 work as expected, too.

I had not changed any settings when I updated to 8.2.

What shall I change?

Thanks in advance,
Ralf
Mau V
2014-06-25 20:43:52 UTC
Permalink
I confirm this. Except that it is not an "empty page" but the "most frequently read" page (yellow background etc.)  + the page with the appropriate doc's pdf

M.


Il Mercoledì 25 Giugno 2014 20:25, Ralf Heckmann <***@yahoo.de> ha scritto:



Hi,

I have a problem with the latest version of WinEdt and Sumatra.

After compiling, clicking the Open-PDF-with-Forward-Search icon, or by
shift + F8  Sumatra opens two instances: an empty one and that one
showing the actual document at the appropriate place (forward search
works as expected). Shift + Ctrl + R opens only one instance.

I can not remember that behaviour with 8.1. A quick test with the latest
version of 7.1 work as expected, too.

I had not changed any settings when I updated to 8.2.

What shall I change?

Thanks in advance,
Ralf
WinEdt Team
2014-06-25 22:08:58 UTC
Permalink
Ralf & Mauricio:

I certainly cannot confirm this on any of my computers. In fact, In
case Sumatra is not already running Forward Search is a few seconds
faster in WinEdt 8.2 than it was in older versions.

Q: Does this happen only if Sumatra is not already running or does
it happen regardless?

I suspect it only happens if it is not already running.

Anyway, the solution is trivial if you are experiencing such
behaviour. Open PDF Search macro in Advanced -> PDF Macros section
of the Options Interface.

Find the lines (line 39 in defaults):

Run("%$('PDF-View');","",0,1);
// Wait until Sumatra is ready for DDE...
Wait(123);

You will either have to increase the Wait time for you machine or
else comment out the Run and Wait lines and things will work
exactly as before.

On my computer commenting these two lines results in about 2
seconds delay when initialing Forward Search and Sumatra is NOT
already running (as was the case in older versions of WinEdt).
That's all...

Best regards,

alex


From: Mau V
Sent: Wednesday, June 25, 2014 5:43 PM
To: winedt+***@wsg.net
Subject: Re: [WinEdt] WinEdt 8.2 and Sumatra with Forward Search

I confirm this. Except that it is not an "empty page" but the "most frequently read" page (yellow background etc.) + the page with the appropriate doc's pdf


M.



Il Mercoledì 25 Giugno 2014 20:25, Ralf Heckmann <***@yahoo.de> ha scritto:




Hi,

I have a problem with the latest version of WinEdt and Sumatra.

After compiling, clicking the Open-PDF-with-Forward-Search icon, or by
shift + F8 Sumatra opens two instances: an empty one and that one
showing the actual document at the appropriate place (forward search
works as expected). Shift + Ctrl + R opens only one instance.

I can not remember that behaviour with 8.1. A quick test with the latest
version of 7.1 work as expected, too.

I had not changed any settings when I updated to 8.2.

What shall I change?

Thanks in advance,
Ralf
Mau V
2014-06-26 06:37:36 UTC
Permalink
Hi!

First of all I have to say that I answered the message just to give some help but i DO NOT see this issue as a problem at all. 

Morevoer, there are some subtleties here because I see that winedt 8.2 does not always behave this way and I do not really understand when. One should experiment...

M.




Il Giovedì 26 Giugno 2014 0:09, WinEdt Team <***@winedt.com> ha scritto:



Ralf & Mauricio:
 
I certainly cannot confirm this on any of my computers. In fact, In
case
Sumatra is not already running Forward Search is a few seconds
faster in
WinEdt 8.2 than it was in older versions.
 
Q: Does this happen only if Sumatra is not already running or does
it
happen regardless?
 
I suspect it only happens if it is not already running.
 
Anyway, the solution is trivial if you are experiencing such
behaviour.
Open PDF Search macro in Advanced -> PDF Macros section
of the Options
Interface.
 
Find the lines (line 39 in defaults):
 
  Run("%$('PDF-View');","",0,1);
  // Wait until Sumatra is
ready for DDE...
  Wait(123);
 
You will either have to increase the Wait time for you machine or
else
comment out the Run and Wait lines and things will work
exactly as
before.
 
On my computer commenting these two lines results in about 2
seconds
delay when initialing Forward Search and Sumatra is NOT
already running (as
was the case in older versions of WinEdt).
That's all...
 
Best regards,
 
alex

 
From: Mau V
Sent: Wednesday, June 25, 2014 5:43 PM
To: winedt+***@wsg.net
Subject: Re: [WinEdt] WinEdt 8.2 and Sumatra with Forward
Search
 
I confirm this. Except that it is not an "empty page" but the "most
frequently read" page (yellow background etc.)  + the page with the
appropriate doc's pdf

M.


Il Mercoledì 25 Giugno 2014 20:25, Ralf
Heckmann <***@yahoo.de> ha scritto:



Hi,

I have a problem with the latest version
of WinEdt and Sumatra.

After compiling, clicking the
Open-PDF-with-Forward-Search icon, or by
shift + F8  Sumatra opens two
instances: an empty one and that one
showing the actual document at the
appropriate place (forward search
works as expected). Shift + Ctrl + R opens
only one instance.

I can not remember that behaviour with 8.1. A quick
test with the latest
version of 7.1 work as expected, too.

I had not
changed any settings when I updated to 8.2.

What shall I
change?

Thanks in
advance,
Ralf
WinEdt Team
2014-06-26 15:58:14 UTC
Permalink
Post by Mau V
Morevoer, there are some subtleties here because I see that winedt
8.2 does not always behave this way and I do not really understand
when. One should experiment...
I would indeed appreciate if you can check if increasing the Wait
to 200 or 250 fixes the problem and let me know what value is OK on
your computer. It is just a sync issue and I would like to fix it
in default settings by increasing this delay (but not too much).

If WinEdt does not start Sumatra then DDE will but DDE uses a large
delay of about 2 seconds if Sumatra is not already running. That's
why I added these lines in the macro PDF Search.edt (which were not
there in previous version).

alex
Ralf Heckmann
2014-06-26 18:19:07 UTC
Permalink
Alex,
Post by WinEdt Team
Q: Does this happen only if Sumatra is not already running or does
it happen regardless?
I suspect it only happens if it is not already running.
Right. If Sumatra runs I always have only one instance after compiling
and Forward Search.
Post by WinEdt Team
Run("%$('PDF-View');","",0,1);
// Wait until Sumatra is ready for DDE...
Wait(123);
Wait(210);
works fine for me.
Post by WinEdt Team
On my computer commenting these two lines results in about 2
seconds delay when initialing Forward Search and Sumatra is NOT
already running (as was the case in older versions of WinEdt).
I can not confirm any significant delay from showing the end of the
compiling report to opening Sumatra, neither with nor without these two
lines.
Post by WinEdt Team
That's all...
Thank you very much for your help.


Best regards,
Ralf
Ralf Heckmann
2014-07-20 13:08:41 UTC
Permalink
Post by Ralf Heckmann
Post by WinEdt Team
Run("%$('PDF-View');","",0,1);
// Wait until Sumatra is ready for DDE...
Wait(123);
Wait(210);
works fine for me.
I have to update that information:

With a larger document (1060 pages A4) I need to use
Wait(450);
to prevent a second (or first) instance of Sumatra. 400 is not enough.

System: Win 7 x64 on AMD 8120 and 8GB, MikTeX 64 (latest version)

Best regards,
Ralf
WinEdt Team
2014-07-21 16:05:07 UTC
Permalink
Ralf,
Post by Ralf Heckmann
Post by Ralf Heckmann
Post by WinEdt Team
Run("%$('PDF-View');","",0,1);
// Wait until Sumatra is ready for DDE...
Wait(123);
Wait(210);
works fine for me.
With a larger document (1060 pages A4) I need to use
Wait(450);
to prevent a second (or first) instance of Sumatra. 400 is not
enough.
System: Win 7 x64 on AMD 8120 and 8GB, MikTeX 64 (latest version)
It is best if you delete the lines:

Run("%$('PDF-View');","",0,1);
// Wait until Sumatra is ready for DDE...
Wait(123);

and let DDE take care of things without possibly problematic
delays. This has already been done in default settings for the next
version...

Best regards,

alex

Loading...