Paul A. Rubin wrote:

> Bernd Schubert wrote:
>> Bernd Schubert wrote:
>> 
>>> Hi all,
>>>
>>> I'm presently coping lots of tex equations into lyx and usually this
>>> works great, but this one drives me nuts:
>>>
>>> \begin{align*}
>>> {\left( {\Delta ^{(1)} } \right)^2 = }
>>> &   + \frac{1} {2}\left( {k^2  + \lambda ^2 } \right)\left( {Q_1^2  +
>>> Q_2^2 } \right)  \\
>>> &   + \frac{1} {2}\left( {k^2  - \lambda ^2 } \right)\left( {Q_1^2  -
>>> Q_2^2 } \right)\cos 2\gamma \\
>>> &   + \left( {k^2  - \lambda ^2 } \right)Q_1 Q_2 \sin 2\gamma
>>> \end{align*}
>>>
>>> As with the other formulas I just copies it into the
>>> "numbered formula field", but this time it add an additional backslash,
>>> so the correspondig tex output is
>>>
>>> \begin{equation}
>>> \backslash begin \{align*}...
>>>
>>> So it didn't recognize the equations and escaped all keywords with
>>> backslashes, hence even in compiled output the formula is displayed
>>> as text...
>>>
>>> Any ideas?
>> 
>> Hmm well, I got it, by only pasting everything between
>> \begin{align*}... \end{align*}, and then by manually making a multiline
>> alighned formula out of it.
>> Still would be better, if it would recognize the formula on its own or at
>> least if it would not escape everything and simply keep the tex code.
>> 
> 
> If you copy everything and paste it directly into a document as text,
> then highlight it all and hit ctrl-M (or click Insert > Math > Inline
> Formula or, in this case at least, Insert > Math > Display Formula), LyX
> will convert it to something close to what is intended.  The only flaw I
> see here is that there are a number of what I think are unnecessary
> braces retained.  You might have to delete those manually.


Thanks Paul, Guenter! That works perfectly fine!


Thanks again,
Bernd

Reply via email to