I have just build and am trying out version 1.2.1 having previously stuck with the final version of 1.16 for the longest time. I use the eqnarray environment a lot, and a number of my documents containing arrays inside the eqnarray environment are breaking under lyx 1.2.1, producing latex errors. An example follows.

Under lyx 1.16 a particular document containing an offending display equation with arrays inside the eqnarray environment produces the following LaTeX, which compiles fine:

{\centering \begin{eqnarray}
u(t)=\frac{4u_{0}t}{t_{m}}\left[ 1-\frac{t}{t_{m}}\right] & & t\in [0,\, t_{m}]\label{eqn:simpleadjointheatflux} \\
s(x,t)=\mathcal{A}(x)\cdot \mathcal{I}(t) & & \label{eqn:simpleadjointsource} \\
\mathcal{A}(x)=2-\frac{5}{4}\left( \frac{x}{h}\right) ^{2} & & x\in (0,\, h_{1})\\
\mathcal{I}(t)=\left\{ \begin{array}{l}
0\\
-i_{0}\cdot \cos \left( \frac{2\pi t}{t_{m}}\right) \\
0
\end{array}\right. & & \begin{array}{l}
t\in [0,\frac{t_{m}}{4})\\
t\in [\frac{t_{m}}{4},\frac{3t_{m}}{4}]\\
t\in (\frac{3t_{m}}{4},t_{m}]
\end{array}
\end{eqnarray}
\par}

Under lyx 1.2.1, the same document produces the following, which LaTeX cannot compile:

\begin{center}\begin{eqnarray}
u(t)=\frac{4u_{0}t}{t_{m}}\left[1-\frac{t}{t_{m}}\right] & & t\in [0,\, t_{m}]\label{eqn:simpleadjointheatflux}\\
s(x,t)=\mathcal{A}(x)\cdot \mathcal{I}(t) & & \label{eqn:simpleadjointsource}\\
\mathcal{A}(x)=2-\frac{5}{4}\left(\frac{x}{h}\right)^{2} & & x\in (0,\, h_{1})\\
\mathcal{I}(t)=\left\{ \begin{array}{l}
0\\
-i_{0}\cdot \cos \left(\frac{2\pi t}{t_{m}}\right)\\
0\end{array}
\right. & & \begin{array}{l}
t\in [0,\frac{t_{m}}{4})\\
t\in [\frac{t_{m}}{4},\frac{3t_{m}}{4}]\\
t\in (\frac{3t_{m}}{4},t_{m}]\end{array}

\end{eqnarray}
\end{center}

I must admit I am a little perplexed by this, and the subtleties of the difference between the two constructs is beyond my meagre LaTeX skills. Does anybody have any suggestions or workarounds?

Thanks in advance.


--
David C Martin ([EMAIL PROTECTED])
Materials Engineering Laboratory,
Mechanical Engineering Department,
University of Oulu
PO Box 4200
Oulun Yliopisto 90014 FINLAND


Reply via email to