Re: ANN: new PDF viewer, inverse search
Murray Eisenberg <murray <at> math.umass.edu>
2008-06-06 12:22:20 GMT
Sorry, my fault: I didn't read RS's entire posting or read it carefully
enough. I forgot the part about using his new versions of the two
macros. With those in place and with MiKTeX...
- no multiple Sumatra windows;
- dvi->pdf command automatically opens the pdf file in Sumatra with
no errors;
- PDFLaTeX (or Acrobat distiller) followed by explicit view pdf work
with no errors;
- inverse search works nicely (except for one bug in Sumatra -- see
below).
Sumatra works with the YandY configuration, too (with dvi->ps followed
by ps->pdf), except that the inverse search is inexact: double clicking
in the pdf doc brings me to a place near, but not at, the corresponding
source code; and a subsequent inverse search.
Sumatra itself has one unpleasant feature: there is no setting for the
window size that can be remembered from one session to the next, so that
it always opens with an overall window that is MUCH too wide -- much
wider than the document itself.
With the MiKTeX configuration, the inverse search also reveals a bug in
Sumatra: sometimes a solid blue rectangle is left next to, or
completely over, the line from which the inverse search was launched.
That rectangle does not disappear from there even if I move to a new
page or do another inverse search elsewhere.
Murray Eisenberg wrote:
> Two problems:
>
> 1. Installed Sumatra PDF viewer and modified the Options|Execution
> Modes|Acrobat as you said.
> 2. In WindEdt I added \usepackage{pdfsync} to a document and, using
> the MiKTeX configuration, I ran the PDF TeXify command from the main
> button bar.
> 3. The generated PDF appeared "instantly" in SumatraPDF.
> 4. A moment later, I got a popup Warning:
>
> Cannot Open DDE Link to "D:\WP\SumatraPDF\SumatraPDF.exe"
> Service: acroview
> Topic: control
> DDEOpen('%$("AcroRead"))',"acroview","control",0);
>
> and file Acrobat OpenDoc.edt opened automatically in WinEdt to the
> offending line.
>
> That's problem A.
>
> 5. At this point I have in the Windows Taskbar one icon for the
> current PDF document open in Sumatra PDF viewer plus two others labeled
> "SumatraPDF" which, when un-minimized, have just the "Sumatra PDF Beta
> v0.8.1..." splash screen.
>
> That's problem B.
>
> RS wrote:
>> Hi all,
>>
>> some interesting developments concerning the WinEdt/PDF viewer interface
>> have been going on recently:
>>
>> 1) a new, free PDF viewer has been announced, the Sumatra PDF viewer,
>> which has some major advantages over Adobe Reader:
>> * it does not lock the file
>> * it refreshes automatically
>> * it allows *inverse* search, ie. the possibility to jump from a
>> page in the viewer to the corresponding location in WinEdt
>> (just like yap does).
>> It's lean, hence some advanced PDF features (eg., layers) won't work.
>> It's new, so some minor glitches are to be expected (eg., it doesn't
>> remember the last location and size of the window).
>>
>> Sumatra can be downloaded here:
>> <http://blog.kowalczyk.info/software/sumatrapdf/>.
>>
>> You don't have to make this viewer the default application for PDF files
>> in order to use it with WinEdt. All you need to do is to open
>> Options|Execution Modes|Acrobat, and choose Sumatra as the "PDF Viewer
>> Executable".
>>
>> If you compile the document with the pdfsync package, you can then
>> double-click in the PDF viewer to jump to the corresponding line in
>> WinEdt. And of course, you can also jump from WinEdt to the respective
>> page in Sumatra (but read on...)
>>
>>
>> 2) pdftex will soon incorporate the facilities from the pdfsync package,
>> thus rendering this package superfluous plus making the mechanism more
>> stable.
>>
>> For those of you who are using a TeX Live based system and are able to
>> compile pdftex, a release candidate of version 1.40.8 is available at
>> <http://sarovar.org/frs/?group_id=106&release_id=812>. For everybody
>> else, it will be included in the upcoming TeX Live 2008 (to be expected
>> "soon"), and of course also in MiKTeX in the near future.
>>
>> The command line switch to enable synchronization is: "--synctex=-1"
>> (that's "minus one"), which you can set in the Execution Modes interface.
>>
>>
>> I have updated the relevant WinEdt scripts to work with Sumatra and with
>> the synctex switch: at <http://www.winedt.org/temp/>, you can download
>> "Acrobat OpenDoc-Find.edt" and "Acrobat OpenDoc.edt", which both have to
>> be saved in the local WinEdt directory %b\Exec.
>>
>>
>> Happy WinEdt'ing!
>
--
--
Murray Eisenberg murray <at> math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305