The LyX version offered on the Fedora 14 repositories has now upgraded to
2.0.0beta1.
When I load a 1.6x multi-document project into the beta version and try to
process it, I get the following error:

Paragraph ended before \gather* was complete.
Missing $ inserted.
Missing \endgroup inserted.
Display math should end with $$.
Misplaced \cr.
Misplaced \noalign.
Misplaced \noalign.
Extra }, or forgotten \endgroup.
Missing $ inserted.

Of course, the document processed just fine with LyX 1.6x.
When I backtraced the error line from the exported tex source, I found that
the problem was in a gather* environment that contains an aligned
sub-environment.  It seems that the lyx -> tex conversion is generating an
incorrect source code.
Moreover, LyX stops displaying the equations the moment a sub-environment is
created.  You can verify that very quickly.

Here's the offending cell:

\begin{gather*}
\frac{d\boldsymbol{p}}{dt}=p_{\perp}\frac{d}{dt}\cos\phi\vu
1+p_{\perp}\frac{d}{dt}\sen\phi\vu
2=\frac{q_{\alpha}B_{0}}{c}\epsilon_{ij3}\vu
iv_{j}=\frac{q_{\alpha}B_{0}}{c}\left(v_{2}\vu 1-v_{1}\vu 2\right),\\
\begin{aligned}\sen\phi p_{\perp}\frac{d\phi}{dt} &
=-\frac{q_{\alpha}B_{0}}{c}v_{2}=-\frac{q_{\alpha}B_{0}}{c}\frac{p_{\perp}\sen\phi}{\gamma
m_{\alpha}}\\
\cos\phi p_{\perp}\frac{d\phi}{dt} &
=-\frac{q_{\alpha}B_{0}}{c}v_{1}=-\frac{q_{\alpha}B_{0}}{c}\frac{p_{\perp}\cos\phi}{\gamma
m_{\alpha}},
\end{aligned}

\end{gather*}

Processing the tex source directly, It complained that the paragraph was
ended before \gather* was complete.  I just had to remove the empty line
before \end{gather*} and the document processed all right.

I guess this is a bug...
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered Linux user # 153741

Reply via email to