On Tue, Sep 19, 2000 at 08:19:11AM -0700, [EMAIL PROTECTED] wrote:
> A change in math mode has rendered unusable a large number of my
> documents from the 1.0.4 days.
> 
> The difficulty lies with the uses of {cases} in math mode.
> 
> I'm attaching a mocked up sample that works great in 1.0.4 and is
> horribly broken in 1.1.5.
> 

If you export the file to tex from LyX 1.0.4, and run latex on it,
you will get many errors, so in fact LyX 1.1.5 is correct by reporting these 
errors, (while LyX 1.0.4 had a bug which caused it to ignore the errors).

> \begin_inset Formula 
> \[
> q_{final}=\frac{\underset {i=1}{\overset {p}{\sum }}\begin{array}{cc}
> \cases {q} & {\text {if\, }\underset {j\neq i}{\underset {j=1}{\overset {p}\sum 
>}}k^{n}_{ij}\neq 0}\\
> {0} & {\text {otherwise}}
> \end{array}}{\underset {i=1}{\overset {p}{\sum }}\begin{array}{cc}
> \cases {1} & {\text {if\, }\underset {j\neq i}{\underset {j=1}{\overset {p}\sum 
>}}k^{n}_{ij}\neq 0}\\
> {0} & {\text {otherwise}}
> \end{array}}\]
> 
> \end_inset 

The problem here is that you use the \cases command incorrectly. You should
have put \cases before the array, and \endcases after the array.
See the attached file.
#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 2.16
\textclass amsart
\begin_preamble
\usepackage{indentfirst,amssymb,rotate,float,rotating}
\newcommand{\tm}[1]{#1\raisebox{1ex}[0cm][0cm]{\tiny tm}}
\end_preamble
\options reqno
\language american
\inputencoding default
\fontscheme newcent
\graphics default
\paperfontsize 12
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 1
\use_amsmath 1
\paperorientation portrait
\secnumdepth 2
\tocdepth 1
\paragraph_separation skip
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle plain

\layout Standard

This is the correct usage of the cases command:
\layout Standard


\begin_inset Formula \[
q_{final}=\frac{\underset {i=1}{\overset {p}{\sum }}\cases \begin{array}{cc}
q & {\text {if\, }\underset {j\neq i}{\underset {j=1}{\overset {p}\sum 
}}k^{n}_{ij}\neq 0}\\
{0} & {\text {otherwise}}
\end{array}\endcases }{\underset {i=1}{\overset {p}{\sum }}\cases \begin{array}{cc}
1 & \text {if\, }\underset {j\neq i}{\underset {j=1}{\overset {p}\sum }}k^{n}_{ij}\neq 
0\\
0 & \text {otherwise}
\end{array}\endcases }\]

\end_inset 

 
\the_end

Reply via email to