Bo Peng wrote: >> Commited. If there are no problems with the new feature in the next days >> I'll ask Juergen. > > Just curious, do you have further plan for this feature such as > accurate cursor matching? This will help if someday we want to turn > view source to edit source.
Not in the near future but... Yes! And I think that Andre's work (TeXStream) may help in this direction. In principle the TeXStream (or a class derived from it) could store the 1:1 table of correspondence between cursor positions and chunks of latex. The export function could call something like os << forwardPos so to keep this correspondence in sync (this operation could be overload as noop in the cases it's not needed). I suspect that it is not even terribly difficult. What do you think? A/