On Tue, 20 Jan 2004, Uwe St�hr wrote:

> But better keep on using the \cases environment.
> I hope this helps.

 I've done extensive experimentation this morning. Following are three code
fragments: one of mine that compiles, one of mine that doesn't compile, and
the one Uwe sent to me:

This compiles:

\begin_inset Formula \[
\mu_{A}(x)=\begin{cases}
1,\\
0,\end{cases}\]
\end_inset

This does not compile:

\begin_inset Formula \[
\mu_{A}(x)=\begin{cases}
1, & \textrm{if and only if}\\
0,\end{cases}\]
\end_inset

And this is Uwe's example:

\begin_inset Formula \[
\mu_{a}(x)=\begin{cases}
\\1 & \textrm{if and only if}\, x\in A\\
0 & \textrm{if and only if}\, x\notin A\end{cases}\]
\end_inset

  Uwe's example has two back-slashes immediately prior to the '1'; my
versions do not. The only effect of the two back-slashes is to add a
spurious extra row on top.

  The difference between my two versions was created when I used the mouse
to place the cursor in the right-side box on the top row, selected 'normal
text mode' from the math panel's text menu, and typed "if and only if". The
error box contains:

Misplaced alignment tab character &.
 1, &
            \textrm{if and only if}\\
I can't figure out why you would want to use a tab mark
here. If you just want an ampersand, the remedy is
simple: Just type       \&' now. But if some right brace
up above has ended a previous alignment prematurely,
you're probably due for more error messages, and you
might try typing ' now just to see what is salvageable.

  Will someone please explain this to me? I cannot figure out what I'm not
doing correctly so my equation will compile when completed.

TIA,

Rich

-- 
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
<http://www.appl-ecosys.com>

Reply via email to