Opened 22 years ago

Closed 13 years ago

#94 closed enhancement (fixed)

LYX forward DVI search.

Reported by: levon Owned by: assirati@…
Priority: low Milestone: 2.0.0
Component: converters Version: 1.4.0cvs
Severity: minor Keywords:
Cc: j.spitzmueller@…, mmh@…, christian.ridderstrom@…, georg.baum@…, forenr@…

Description (last modified by ps)

From: Stefan Kebekus <stefan.kebekus@…>

I have recently added an inverse search option to the
kdvi program, and
I would like to ask you to support that feature in Lyx.
The current
development version of kdvi (to be found on the KDE
CVS) scans a
dvi-file for specials of the type
"src:<linenumber><filename>". If these
specials are found, the user can click into the dvi
file, and kdvi will
execute a given command line, which -most of the time-
opens an editor
and tells the editor jump to the given line in the
text. Right now, kdvi
interacts very nicely with most of the standard
editors, such as nedit
or xemacs.

It would be very nice indeed, if Lyx could also be
supported. A possible
implementation could look like this: when producing
dvi-files for kdvi,
the TeX-file-generator of Lyx could insert proper
"src:"-specials which
refer to a paragraph (I understand that there is no
concept of a line
number in the Lyx editor). If the user clicks on the
dvi file, kdvi
could start a small program which remote controls the
Lyx editor.

If you prefer, I would also consider to implement a new
class of
TeX-specials exclusively for Lyx.

Attachments (4)

attachment.cgi (10.0 KB ) - added by huanito@… 17 years ago.
Spam, changed MIME type /Christian
attachment.html (10.0 KB ) - added by huanito@… 17 years ago.
spam, changed MIME type /Christian
attachment.2.html (10.0 KB ) - added by huanito@… 17 years ago.
spam, changed MIME type /Christian
forward.patch (3.0 KB ) - added by ps 14 years ago.

Download all attachments as: .zip

Change History (43)

comment:1 by levon, 22 years ago

Keywords: ui added
Summary: LYX, KDVI and inverse search. LYX, KDVI and inverse search.

comment:2 by levon, 22 years ago

Cc: mmh@… added

comment:3 by levon, 22 years ago

* #410 has been marked as a duplicate of this bug. *

comment:4 by levon, 22 years ago

Version: 1.2.0cvs1.2.0

Mass move to 1.2.0 - grep out the bugspam with "Dharma ex one+one"

comment:5 by levon, 22 years ago

This is dependent on a lyxserver shell script or equivalent. I bet it
would be pretty easy to do though, right ?

comment:6 by levon, 22 years ago

dependson: 197

dependent upon lyx --server or similar.

comment:7 by levon, 22 years ago

Cc: chr@… added

comment:8 by levon, 22 years ago

* #707 has been marked as a duplicate of this bug. *

comment:9 by chr, 21 years ago

xdvi 22.71 now supports reverse search (aka inverse search)

comment:10 by levon, 21 years ago

Keywords: patch added
Owner: changed from dekel to assirati@…
Version: 1.2.11.4.0cvs

comment:11 by Uwe Stöhr, 18 years ago

Milestone: 1.4.1

comment:12 by levon, 18 years ago

Not 1.4.0 material.

comment:13 by lasgouttes, 18 years ago

Milestone: 1.4.11.4.2

not 1.4.1 either I guess.

comment:14 by lasgouttes, 18 years ago

Milestone: 1.4.21.4.x

comment:15 by michael.gerz@…, 17 years ago

Do we really want to have such a feature in LyX?

I am a little bit afraid of the long-term maintenance effort and the missing
genericness of this feature. (How about pdf export, how about yap on Windows,...?)

comment:16 by Juergen Spitzmueller, 17 years ago

Do we really want to have such a feature in LyX?

Definitely. It would improve editing a lot.

comment:17 by chr, 17 years ago

I definitely think this functionality is worth maintaining.
Without it, LyX has a big drawback compared to WYSIWYGI
applications when it comes to checking the "print" output.

by huanito@…, 17 years ago

Attachment: attachment.cgi added

Spam, changed MIME type /Christian

by huanito@…, 17 years ago

Attachment: attachment.html added

spam, changed MIME type /Christian

by huanito@…, 17 years ago

Attachment: attachment.2.html added

spam, changed MIME type /Christian

comment:18 by chr, 17 years ago

attachments.description: sefspam, changed MIME type /Christian
attachments.mimetype: text/htmlapplication/spam

comment:19 by chr, 17 years ago

attachments.description: sefspam, changed MIME type /Christian
attachments.mimetype: text/htmlapplication/spam

comment:20 by chr, 17 years ago

attachments.description: UpsSpam, changed MIME type /Christian
attachments.mimetype: application/octet-streamapplication/spam

comment:21 by Richard Heck, 17 years ago

Milestone: 1.4.x1.5.x

Moving all bugs targeted to before 1.5.0 to 1.5.x.

If these are yours, please check that they have not been fixed and, if so, close
them.

Otherwise, sorry for the spam.

comment:22 by Juergen Spitzmueller, 16 years ago

Cc: j.spitzmueller@… georg.baum@… added

We had a patch for this. It would be good if someone would finally grab and
apply it (even for 1.5, i.e. after 1.5.4).

http://marc.info/?l=lyx-devel&m=114149556030754&w=2

comment:23 by Juergen Spitzmueller, 15 years ago

Milestone: 1.5.x1.6.x

1.5.x is frozen. Shifting all 1.5.x-targetted bugs to 1.6.x.

If you have reported this bug, please verify if it still occurs in 1.6.0 and
close the report, if not.

comment:24 by ps@…, 15 years ago

Georg, what was the problem with your patch that it finally didn't get applied?

comment:25 by Georg Baum, 15 years ago

The patch was not from me, I only tried to make it more consistent with the
formats/converter system :-)
It did not get applied because there was no consensus which approach was best.
Read the thread for details.

comment:26 by ps@…, 15 years ago

i already run through the thread and somehow missed there was such a problem.
thanks for explanation.

comment:27 by ps, 15 years ago

Summary: LYX, KDVI and inverse search.LYX forward DVI search.

inverse search works, this bug is now for forward search part. changing summary.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg150369.html

comment:28 by ps, 15 years ago

Description: modified (diff)
Priority: highnormal

#94 is a dupe.

comment:29 by ps, 15 years ago

#706 is a dupe i wanted to say.

comment:30 by ps, 15 years ago

Priority: normallow

comment:31 by ps, 14 years ago

Cc: forenr@… added

simplest idea would be to have lfun which get id of current cursor position, translate through TeXRow::getRowFromIdPos into row and then externally launch
xdvi -sourceposition row_line:tmp_tex_file.tex tmp_tex_file.dvi

it maybe not hard for somebody familiar with the rows/id stuff, Enrico?

comment:32 by Enrico Forestieri, 14 years ago

Sorry, but I am not familiar with the rows/id stuff.

comment:33 by ps, 14 years ago

i give it a try, but failed. either i dont know how to correctly use texrow().getRowFromIdPos or this function is broken. see attached.

by ps, 14 years ago

Attachment: forward.patch added

comment:34 by ps, 14 years ago

Milestone: 1.6.x2.0.0

hohoho i replaced the patch with newer version; right paragraph is chosen now, but the column position argument still needs to be fixed.

i believe we can get this into 2.0.

comment:35 by Enrico Forestieri, 14 years ago

It also works on Windows with yap. Of course, some details are still to be addressed, such as making sure that the dvi file was generated, allowing customization for the command to be launched, and so on. Anyway, I like it :)
I don't understand what you mean about the column position argument.

comment:37 by ps, 14 years ago

Keywords: fixedintrunk added; ui patch removed

comment:38 by ps, 13 years ago

Keywords: fixedintrunk removed
Resolution: fixed
Status: newclosed

2.0.0 is ready

comment:39 by Richard Heck, 10 years ago

Component: exportconverters
Note: See TracTickets for help on using tickets.