On Sun, Nov 03, 2002 at 02:07:00PM -0600, Bo Peng wrote:
> There is a serious problem (a bug?) with this solution: I can not enter
> math in \intertext{}. Lyx treats text in \intertext as math but it
> should be treated as text. For example,
>
> I enter
> \intertext{
> C-M to text mode
> and because
> C-M to math mode
> \xi_k
> etc....
>
> I get compile error. The tranlated tex file is:
>
> \intertext {\textrm{and because }\xi _{k}\textrm{ and }U_{k}\textrm{ are
> iid}}
Use macro definition.
Before the formula write:
\def\myitext{\intertext{and because $\xi_{k}$ and $U_k$ are iid}}
and inside the formula, write \myitext.
This is ugly, but hopefully, LyX will have native support for intertext in
the near future.