Paul A. Rubin wrote:
>
> Whitman wrote:
>> I just begun to use lyx for days and when i was trying to input a math
>> equation like this(base on the IEEtrans template),
>>
>> -----------------------------------------------
>>
>> $f(x)=\begin{cases}
>> 1 & x>0\\
>> 0 & x<0\end{cases}$
>>
>> ------------------------------------------------
>>
>> it supposed to looked like this:
>>
>> http://www.nabble.com/file/p16918124/Fx.png
>>
>>
>> after compiling i'm always getting this error:
>>
>> http://www.nabble.com/file/p16918124/Error.png
>>
>>
>> and when I copy the same equation above to a new empty Lyx file, and
>> unbelievablely it passed !!!
>> if I deleted the equation in the IEEEtrans Lyx-doc, it can also be
>> correctly
>> compiled!
>>
>>
>> It means I can't write such an equation in a Lyx file that's based on a
>> template but must creat a new empty file to reedit and reconfigure,
>> that's
>> really baffling ! (Is it a bug or sth else???)
>>
>> sb could give a hand ? thx.
>>
>>
>>
>
> Using the IEEETran template, you need to go to Document -> Settings...
> -> Math Options and check either "Use AMS math package" or "Use AMS math
> package automatically". For whatever reason, the "automatically" option
> is on by default when you start a new document and set the class to
> "article (IEEEtran)" but is off when you use the template. I'm not sure
> if I'd call it a bug, but it might be a good idea for the developers to
> switch AMS on in the template.
>
> /Paul
>
>
>
Thanks a lot for the hint, it seems that the problem happens not only to
IEEEtrans template but also to other Templates as well. Hope the coming
version will solve it.
--
View this message in context:
http://www.nabble.com/Very-confused-About-the-error-%22Misplaced-alignment-tab-character%22-tp16918124p16927431.html
Sent from the LyX - Users mailing list archive at Nabble.com.