Andre Poenitz wrote:

> On Tue, Jan 21, 2003 at 10:12:28AM +0100, Michael Schmitt wrote:
>> >No. There are still rough edges (display jumping) and there are
>> >conceptual problems (fancy preambles) that make this wonderful
>> >feature unusable under some circumstances. It certainly should not
>> >default to on.
>> 
>> I know the first problem and I would be happy to see a fix for it.
>> But what is the second problem (fancy preambles)?
> 
> It's rather "Fancy ERT not in preambles".
> 
> Preamble:
>   \def\foo{\bar}
> 
> Later ERT:
>   \def\foo{\urgs}
> 
> Math:
>   \foo
> 
> There is another one: Currently, \lyxlock gets written to the .tex
> snippets. This indicates that preview uses the "write to .lyx"
> method instead of "write to .tex" (I think this is a boolean flag
> somewhere, haven't looked at it, though)
> 
>> Yes, I guess so. Unfortunately, I don't have enough knowledge to
>> provide a patch for it.
> 
> The ERT problem is unsolvable.

Ummm. We already loop over the document to output all math macros. 
Could we also output all ERT insets? I guess that there'd be an 
accounting problem, as some of these ERT insets would generate output 
in the dvi file and some would define variables as above. We'd have 
to throw away the previews of any ERT.

The important question however is would it work as a solution to 
André's unsolvable problem or would it lead to problems of its own? 
I'd guess the latter, but I'm no TeXie.

-- 
Angus

Reply via email to