On Nov 25, 2007 11:18 AM, Andre Poenitz < [EMAIL PROTECTED]> wrote: > On Sun, Nov 25, 2007 at 10:26:26AM +1100, Ryan Cross wrote: > > On Nov 25, 2007 8:39 AM, Paul A. Rubin <[EMAIL PROTECTED]> wrote: > > > > > Atakan Kubilay wrote: > > > > This is just > > > > a call for an added feature I have sorely felt the absence of: I > want > > > > to be able to edit Latex code-not just preview it-while typing. > > > > > > Someone else suggested/requested this recently. I'm not sure if it > was > > > entered into bugzilla as an enhancement request. > > > > > > > I > > > > know it can be a big mess if a novice Latexer edits the code, but > > > > there can just be a big warning message like that appears on the top > > > > of the document. > > > > > > It's more complicated than that. If you modify the LaTeX source (as > > > opposed to entering LaTeX in an ERT box), LyX would have to > > > "reverse-engineer" your changes in order to keep the display correct. > > > (With ERT, LyX makes no attempt to format your entry for the display.) > > > So you now require LyX to "understand" a virtually unlimited amount of > > > LaTeX syntax (I say "unlimited" because, of course, LaTeX is designed > to > > > be extended by macro packages). > > > > > > /Paul > > > > > > > > Correct me if I'm wrong, but the "understanding" you are referring to is > > already available - it is the relyx command that is used when > > opening/importing a latex file. So, what this is a request for is a > relyx in > > place option - which is listed on the wiki with several other feature > > requests. With that in mind, I don't think this request is quite as > > complicated as you make out - but i'm not a lyx developer. > > ReLyX is replaced by tex2lyx nowadways. But even that is fragile and > incomplete. As an additional burden, it would need to handle incomplete > TeX constructs, too. > > Andre' >
I did see that ReLyx was replaced by tex2lyx (which is hopefully better). I think this feature could be solved by actually doing a preview/edit of the actual Lyx file format and not the LaTeX. Most of the edits I want to do could probably be done by editing the Lyx file format. This would eliminate the issue of converting in place, the only thing that would be useful/necessary would be to have some sort of tag closer, which is relatively easy.