Many thanks to Enrico for implementing the LyX server for Win32!!! =)
Now many people will want to configure LyX to interact with
SumatraPDF.  I just installed 1.6.5 Win32 on a new computer, and I
have several ideas for improvements.

1)  Add SumatraPDF to the list of PDF viewers detected in configure.py

2)  Detect the installation path of SumatraPDF in the AltInstaller, i.e.
    LyXInstaller-complete.nsi / LyXInstaller-small.nsi:
      + Var SumatraPDFPath
    MissingPrograms.nsh:
      + ReadRegStr $SumatraPDFPath HKLM "Software\SumatraPDF" "Install_Dir"
    ConfigLyX.nsh:
      + ${if} $SumatraPDFPath != ""
      +  StrCpy $PathPrefix "$PathPrefix;$SumatraPDFPath"
      + ${endif}

3)  Don't use lyxeditor.bat.  Many steps are necessary to create this
file and ensure that it's discovered by SumatraPDF.  Instead, we can
recommend setting the pdflatex viewer to
    SumatraPDF $$i -inverse-search "cmd /C echo
LYXCMD:revdvi:server-goto-file-row:%f %l> \\.\pipe\lyxpipe.in & type
\\.\pipe\lyxpipe.out"

4)  File a feature request for SumatraPDF to add a command line argument
    SumatraPDF -lyxpipe "\\.\pipe\pipename"
which would echo directly to the pipe without the need for a cmd
console, allowing us to tidy the viewer invocation to
    SumatraPDF $$i -lyxpipe $$p
where $$p would be the pipe name (if not in conflict with another variable).
    http://code.google.com/p/sumatrapdf/issues/list

5)  Maybe eventually have the AltInstaller provide an option for
configuring SyncTeX/SumatraPDF.

I think all except for 5) should be fairly straightforward.  Should we do these?

-Ben

Reply via email to