Bo Peng wrote: > Dear all, > > Playing with the view-source dialog (it is great fun), I can not help > thinking whether or not we can achieve something similar to > dreamweaver's dual view feature. That is to say, what is typed in the > lyx window shows automatically (and dynamically) in the source window > (has been done), and what is typed in the source window automatically > appears in the main window. The later sounds very difficult but if we > add a few restrictions that help user specify ERT etc, and allow only > basic commands, it may be doable. After all, we have been importing > large latex files. > > This provides a potentially very powerful input method. Latex veterans > will like this feature, Lyx, in general, is not designed for such > things though. > > Will this worth pursuing?
I don't think so. LyX is simply not the right tool for people who want to be in close touch with the TeX code. They should use kile or emacs+preview-latex. Then there is alo a technical problem: Basically you would need to integrate tex2lyx in LyX, and make it able to understand not only complete files, but also TeX snippets. The problem here is that tex2lyx can only parse "well-behaved" TeX, several advanced constructs are not possible, so it is very likely that the TeX->LyX translation will fail. If you want to do something in this direction: Here is a similar idea I had a long time ago, and which would be more useful for users IMHO: Make it possible to copy-paste TeX snippets from other programs in a LyX document. That would mean - Enable LyX to use the clipboard not only for text, but other data (http://bugzilla.lyx.org/show_bug.cgi?id=2138). With qt that means basically that you have to deal with mime types. - Implement TeX->LyX conversion for TeX data. This could for example be done by calling tex2lyx with the -c option. later one could also implement real LyX to LyX copying. Georg