I am trying to configure LyX 1.6.3 on my WinVista machine for the inverse dvi search as described in http://wiki.lyx.org/LyX/LyXOnCygwin. I am using yap shipped with MikTeX as dvi viewer - and I am a bit lost. So here what I have figured out so far:

- Doc preamble - maybe extension to inverse pdf search:
\usepackage{ifpdf}
\ifpdf
 \usepackage{pdfsync}
\else
 \usepackage[active]{srcltx}
\fi

- File lyxeditor.bat in ...\Program Files\LyX16\bin:
@echo off
if "%1" == "-g" goto lyxclient
bash -c 'lyxeditor.sh $(cygpath -a "%1") %2'
exit
:lyxclient
bash -c 'lyxclient %1 $(cygpath -a "%2") %3'

- yap configuration: Finger to lyxeditor.bat file with arguments "-g %f %l".

Q1: There are no files "lyxeditor.sh" and "lyxclient" in my LyX16 program folder. Am I missing something here? The files do not seem to be shipped with the installation file. Or - after rereading the description mentioned above - is it meant to create a file "lyxeditor.sh" containing

#!/bin/sh
LYXPIPE="/path/to/lyxpipe"
COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
echo "$COMMAND" > "${LYXPIPE}".in || exit
read < "${LYXPIPE}".out || exit

lyxeditor.sh refers to. But then there is no lyxclient file ?!?

Q2: How can the compilation avoided - but without paying the price of some a flashing console window.


Thanks for your input!
/J.

Reply via email to