ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Math startarray and \cases{xxx} bug?
@ 2005-05-13 14:16 Maurice Diamantini
  2005-05-17 15:36 ` sample of using \startarray (long) was: " Maurice Diamantini
  0 siblings, 1 reply; 2+ messages in thread
From: Maurice Diamantini @ 2005-05-13 14:16 UTC (permalink / raw)
  Cc: Maurice Diamantini

Bonjour à tous,

I'm using amsl module, but it seems there is a probleme
with the startarray/stoparray environment which apear with the "t"
type of column (t for text).
So the basic cases commande doesn't work.

Also the \startcases/stopcases should have the same meaning thas
\cases{xxx} has, but it doen't.

I use textlive distrib with a copy og t-amsl.tex version 2004.11.18

Thank you for any help!
-- Maurice Diamantini

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usemodule[amsl]
\starttext

\startformula
     {\bf f(x)} =
     \cases{
         \sum_{x=1}^n x      & if I am false
         \\
         \displaystyle% just to see the difference
         \sum_{x=1}^n x^2    & \text{if I am true}
    }
\stopformula

% This formala works as expected, but if I replace
% the forth column of type "l" which contains some \text{xxx} stuffs
% with a column of type "t" without using the \text command,
% there is an error.
\startformula
     {\bf e_u(t)} =
     \left\{
     \startarray{dlll}% ou bien : \startarray{| d | l | r | l}
         \displaystyle
         \sum_{x=1}^n f(x)
             & = ax^2 + b.x + c,
             & = a
             & \text{Here some text}
             \\
         \hfil y_2    % just to center stuff within a "d" column
             & = 3ax^3 + 3ax^2 + b.x + c,
             & = b
             &
             \\
         \sum_{x=1}^n h(x)
             & = y_2,
             & = a + b
             &  \text{encore du $(x^2)$ texte}
     \stoparray
     \right.
\stopformula

\startformula
     {\bf e_u(t)} =
     \startcases
         \sum_{x=1}^n f(x)
             & if I am true
         \\
         \displaystyle
         \sum_{x=1}^n h(x)
             & if I am false
     \stopcases
\stopformula
\stoptext

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-17 15:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-13 14:16 Math startarray and \cases{xxx} bug? Maurice Diamantini
2005-05-17 15:36 ` sample of using \startarray (long) was: " Maurice Diamantini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).