>>>>> "Ben" == Ben Cazzolato <[EMAIL PROTECTED]> writes:
Ben> Sorry, I should have looked at this more closely. It only
Ben> happens when the ERT is put in the Chapter or Section headings.
Ben> It works fine in standard text, in the author field (silly I
Ben> know) and, as Garst has shown, in the title page. So far I've
Ben> only found it's faulty under under the <alt> P type headers.
Ben> This is the latex that is produced by pre2. \today}
Ben> This is the latex that is produced by pre4. \protect \\protect
Ben> t\protect o\protect d\protect a\protect y}
Ben> I've included a very short lyx file which generates the fault
Ben> below.
This is a bug I introduced :( So I'll fix it.
I propose a radical change: don't use \protect at all for TeX mode in
a moving argument. In fact, this protect is bad for several reasons:
1/ It will only protect the first macro in the TeX code, and thus is
not perfect
2/ Most LaTeX fragile commands have been made robust now
3/ People who use TeX in LyX are supposed to know what they do
4/ We should not do things behind the user's back.
If I do not hear complaints, I'll just remove this special code. For
those of you who want to do it now, just comment out lines 2239-2244
of paragraph.C and recompile.
JMarc