On Thu, Aug 01, 2002 at 04:29:46PM +0200, Jean-Marc Lasgouttes wrote:
> Andre> This would be possible if we had a flawless lyx->tex->lyx round
> Andre> trip which is important for a few other things too.
> 
> I do not think this is ever going to happen. There is some information
> which is _not_ written in .tex, like for example whether a float is
> open or collapsed.

I would not be too sure about that. We could "write everything to .tex" if
a certain flag is set and honour this on read-back. I was actually thinking
about using something similar to save the "locked" state of math insets
(i.e. write a \lyxlock 'marker' to the .lyx, but not to .tex).

> Andre> [Latest annoying thing I found which would be solvable by that:
> Andre> If you have a 'proof' style in a home made layout which insert
> Andre> \begin{proof}...\end{proof} and convert it to some common
> Andre> layout like 'article' which does not have these things, the
> Andre> \begin...\end simply vanishes. This could be solved by a
> Andre> lyx(homemade)->tex->lyx(article) roundtrip that would convert
> Andre> the \begin{} to ERT]
> 
> Keeping \begin{proof}...\end{proof} is not possible if your article
> layout does not support it, anyway... What do you propose.
> 
> I think trying to go through .tex to solve such problems is misguided,
> anyway. 

Why? It's the only clean solution I can imagine. As we do not have to parse
arbitrary .tex but only things generated by ourselves I'd even think this
is feasible.

> Andre> BTW: How do I define a layout 'definition' that might span
> Andre> several paragraphs? And how would that work with two
> Andre> definitions immediately after each other?
> 
> All layouts which correspond to latex environment will span several
> paragraphs. There is not clean way to split such paragraph (and this
> is an old problem that drew lots of complaints) in separate
> environments. A solution would be to add to paragraph layout a
> checkbox 'end layout here', but this is really not an intuitive
> solution. This is a real problem we have with our linear description
> of layouts.

Ok. (Or not ok, but now I am sure I did not miss something crucial).

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Reply via email to