On Apr 16, 2007, at 10:17 AM, Bennett Helm wrote:
On Apr 16, 2007, at 1:12 PM, Brian Kidd wrote:
On Apr 16, 2007, at 5:40 AM, Bennett Helm wrote:
On Apr 16, 2007, at 12:51 AM, Brian Kidd wrote:
i just set up the interface with X11 to view dvi files with
xdvi. the viewer is great because it's much quicker than preview
and is easy to update.
the reverse search sounds interesting, but i'm not sure how it's
supposed to work in lyx? i edited my latex -> converter so it
includes the source-specials tag (latex --src-special $$i), but
when i ctrl-click from within xdvik, nothing happens. i thought
that reverse searching meant i could click on the dvi file and
the cursor within lyx would go to the clicked location. am i
misunderstanding something? i got the impression from the wiki
that i can do reverse searching between lyx and xdvi. is this
possible and what is the exact syntax to configure? finally, if
it's possible to do reverse searching, can one do forward
searching with lyx too?
i'm running lyx 1.4.4 on mac.
You need to set up xdvi as well. See the wiki, here:
<http://wiki.lyx.org/Mac/Mac#toc7>
Bennett
i have xdvi set up according to the wiki and everything exports
from lyx just fine. however, nothing happens when i CONTROL-click
on any word of the document. there are no changes in the cursor
location in lyx. CONTROL-click seems to be the right method on a
mac because before i set up the latex to dvi converter with the
option latex --src $$i, i would get an error message in xdvi
saying No source specials in this DVI file - couldn't do reverse
search. As an aside, the wiki has OPTION-click for reverse
searching, which doesn't seem to be right in my case.
what should happen if everything is working properly and is there
anything else to diagnose the reverse search problem?
Reverse searching works through lyxpipe. When you start LyX.app, it
checks to see if two files -- .lyxpipe.in and .lyxpipe.out --
exist; if they do, then LyX cannot interface with them properly. If
they don't then LyX creates them and can use them to make reverse
searching work. I suspect that you probably have these files
remaining from running LyX at some point in the past (as when it
crashes and so is unable to delete these files). If that's so, you
need to delete them manually. Their location can be found in LyX >
Preferences > Paths. (And since they are files whose names begin
with ".", they are invisible in the Finder; you'll need to use the
Terminal, something like this:
rm /path/to/.lyxpipe.in
rm /path/to/.lyxpipe.out
(substituting the appropriate path name for "/path/to").
Bennett
Thanks for the tips about pipes. It wasn't the exact issue you were
referring to, but I was able to modify the lyxpipe path so it points
to the correct location. Note that I am using JabRef so I had to fix
the path to the lyxpipe before. Everything seems to be working now.
-Brian