On Thu, 16 Oct 2003, Alfredo Braunstein wrote:

> Joao Luis Meloni Assirati wrote:
> > I think that the frontends should have a dialog with a tri-state
> > (radio) button as this:
> >
> > Inverse DVI search:
> >  [ ] Disable
> >  [ ] Latex option   [ --src-specials ] <- text box
> >  [ ] Package        [ srcltx         ] <- text box
>
> I think that we should detect the thing in configure (existence of
> srcltx.sty and latex --src-specials), and then pick one and add it when
> running latex for view->dvi but *not* for export->latex. I think that
> there's no need to add burden to the gui. When can be undesirable to have
> it? Can it collide with other packages etc? (maybe a checkbox to supress it
> after all?).

Lyx should work with a number of latex distributions, in many versions
etc. It is hard to predict what will be the behavior of each one, and
_maybe_ implementing a dialog like I sugested could be simpler and more
reliable that trying to detect versions and usability (I am NOT trying to
have my bit in the gui!:)). Anyway, as you noted, work still have to be
done so source specials are included only when viewing->dvi.

Note that direct DVI search also uses source specials, so the proposed
dialog would rather be called "DVI search", not "Inverse DVI search".

I think that passing lyxclient through the XEDITOR environment variable
(see still unapplied patch in the first email in this thread) was a good
thing, as xdvi will pick that variable if it needs, and therefore there is
no need to do any kind of detection.

Joćo.

Reply via email to