I inserted a math display box, then "\mbox" then "{" (LyX inserted the closing
"}"), then "\textrm" then "{" (automatic insertion of "}") then I
typed some characters. I saved the file and spaces where inserted
between \textrm and the accolade. This extra space makes LyX unable
to read properly the formula.
The solution is to edit the LyX file and delete the extra space. The
formula is then read and written correctly.
--Nabil
Jean-Marc Lasgouttes writes:
> >>>>> "Nabil" == Nabil Hathout <[EMAIL PROTECTED]> writes:
>
> Nabil> Hello, I a using LyX 1.0.3 and it seems there is a problem when
> Nabil> Lyx reads a file containing a formula. If you load this file,
> Nabil> the formula is not properly recognized. Is it a known bug ?
>
> Hello,
>
> How was this equation entered? From LyX or via reLyX?
>
> I added Alejandro as Cc: to have his view on the question, since I do
> not see the problem. For reference, the equation was
>
> \begin_inset Formula \( \frac{\mbox {\textrm {abc}}}{\mbox {\textrm {efg}}} \)
> \end_inset
>
> which seems fine to me, and lyx says:
>
> Line ~30: Math parse error: Expected {. Maybe you forgot to enclose an argument in {}
> Line ~30: Math parse error: Unmatching braces
> Math Panic, expect problems!
>
> So, Alejandro, is that a bug, or a formula that LyX is not supposed to
> read?
>
> JMarc
>