Em Seg 19 Jul 2004 19:11, você escreveu: > Lars wrote: > > How are the source specials generated for the dvi generated from LyX? > > I cannot find any -src-specials arg to dvi that we use? > > They are generated by latex with the switch --src-specials (you need to > change by hand the converter Latex->DVI). With this option, latex will > insert a source special at every end of line. > > > (I am asking since I wan to get rid of TexRow, but I don't want to > > kill the dvi inverse search feature.) > > Dvi inverse search relies on LFUN_GOTOFILEROW, wich uses > view()->setCursorFromRow() wich uses buffer()->texrow().getIdFromRow().
There is another way, but I think it is not adequate to a feature freeze. Lyx could generate the latex file inserting itself custom source specials of the form \special{src:<mark> <filename>} where <mark> could be a paragraph number, or an inset number. That is, the source specials refer to the lyx file, not the latex file. Then LFUN_GOTOFILEROW and texrow along with it could be dismissed, and we would need some LFUN_GOTOFILEMARK instead, to be called back by xdvi through lyxclient. As a side effect, this would permit to implement the latex exporter as a separate program outside lyx (maybe that's why Lars want to get rid of texrow). It should be noted that inverse dvi search is not the only user of LFUN_GOTOFILEROW: http://www.mail-archive.com/lyx-devel%40lists.lyx.org/msg02947.html Regards Joao.