Dekel
> On Wed, Dec 06, 2000 at 09:56:14AM +1030, Ben Cazzolato wrote:
> > Guys
> >
> > I'm having problems with the DVI viewer and figures with lyx1.1.6pre2. I think
> > it has to do with the full path being used. The process initated by lyx when
> > viewing DVI is
> >
> > xdvi.bin -name xdvi -paper a4 /home/bscazz/consult/britax/proposal.dvi
> >
> > Same goes for all my figures. Any ideas?
>
> The bug is really in xdvi: it requires the current directory to be
> '/home/bscazz/consult/britax/' in order to view the eps figures, namely
> if you run xdvi from another directory by using the full path, it will not show
> the figures.
> (The xdvi man page says that if the file name does not begin with a slash,
> then xdvi will look (for eps files) in the directory containing the DVI file,
> but it doesn't seem to work).
>
> I've attached a fix for this problem: before viewing any file, LyX changes the
> current directory to the directory of this file.
>
> PS: Maybe changing the directory should be done only for DVI viewing.
> Are there other cases of viewers that requires changing of the directory ?
Well, viewing PS figures in the dvi file is no longer a problem. To fix it I
turned on the temp directory flag, then turned it off. Yep, weird.
The strange thing is now latex'ing doesn't work properly. If I delete my .dvi
file and try export dvi it doesn't work. I get no dvi file. I suspect lyx
thinks it already exists. Now if I delete the .tex.dep file it will export the
dvi.
The strange thing is none of these problems occured before 1.1.6pre2 (and now
1.1.6cvs).
Ben