On Thu, Aug 01, 2002 at 04:46:22PM +0200, Jean-Marc Lasgouttes wrote: > Andre> I would not be too sure about that. We could "write everything > Andre> to .tex" if a certain flag is set and honour this on read-back. > > Why do you need .tex?? Just output .lyx to the clipboard and parse it > back? I just do not understand the need for an extra format.
Because .tex contains the \begin{proof}...\end{proof} whereas .lyx only has \layout proof which is changed to \layout standard if read tith the wrong class and not to a sequence ert-standard-ert. Apart from that, .tex is not exactly an 'extra format', is it? > Andre> I was actually thinking about using something similar to save > Andre> the "locked" state of math insets (i.e. write a \lyxlock > Andre> 'marker' to the .lyx, but not to .tex). > > What is the "locked" state? One can 'lock' insets to make them into a unit concerning 'ordinary cursor movement'. Unfortuantely, that state is not saved (but I intend to change that). > >> I think trying to go through .tex to solve such problems is > >> misguided, anyway. > > Andre> Why? It's the only clean solution I can imagine. As we do not > Andre> have to parse arbitrary .tex but only things generated by > Andre> ourselves I'd even think this is feasible. > > Again: what do you want to do with your \begin{proof}...\end{proof}? > Generate ERT that will not even compile? I want the proof survive the cycle mylayout->otherlayout->mylayout. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)