On Thu, Aug 01, 2002 at 05:02:42PM +0200, Jean-Marc Lasgouttes wrote: > Andre> Apart from that, .tex is not exactly an 'extra format', is it? > > I really think that lyx<->tex conversion cannot be one-to-one exactly.
I don't think this either. > So you are going to loose information. What about quote insets? What you > are going to propose is to add so much meta-information to .tex that you > will have invented a new hybrid fileformat---which we may call .tyx > ;)---, which will be yet another format that lyx has to understand. Ah... ok. So that you mean by 'new file format'. But we have that already, it's called '.tex exported by LyX'. We put there a \def\LyX{...} in the preamble etc. > And I do not see why the 'proof' environment should survive > translation, since the article document would then not be typesetable. Being able to typeset something and being able to edit something are different things. I've been writeng .tex on machines without latex installed... > An idea I had in mind some time ago was, when a layout cannot be > translated, to do as if it was 'standard', but remember the layout name > so that it does not get lost. In your case, it would look like Standard, > but be written as 'proof' in the lyx file. But this breaks as soon as different style define 'proof' differently. > Certainly much easier than what you propose. I doubt that. All we need is a parser that can read the kind of .tex we produce. [And of course the panacea is "inset unification" followed by "re-use the math parser", but I think you got already tired of that song] > Andre> One can 'lock' insets to make them into a unit concerning Andre> > 'ordinary cursor movement'. Unfortuantely, that state is not Andre> saved > (but I intend to change that). > > Can you give examples? You could lock a \mathbf{x} and pass over it with a single <Right>. If the inset is not locked, it takes three(!) <Right> which is not really nice. > Were you jealous not to have 'locking insets' in mathed? *grin* No. The reason is really to have a means to make the "additional cursor positions" that resulted from the "fonts as insets" change unvisible if not needed. Of course, this is only sensible if the lock state is saved. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)