From: Maurice Diamantini <Maurice.Diamantini@ensta.fr>
Cc: Maurice Diamantini <Maurice.Diamantini@ensta.fr>
Subject: Math startarray and \cases{xxx} bug?
Date: Fri, 13 May 2005 16:16:15 +0200 [thread overview]
Message-ID: <1A7D71A6-E93B-473E-9746-0D9D4455A850@ensta.fr> (raw)
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
next reply other threads:[~2005-05-13 14:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-13 14:16 Maurice Diamantini [this message]
2005-05-17 15:36 ` sample of using \startarray (long) was: " Maurice Diamantini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1A7D71A6-E93B-473E-9746-0D9D4455A850@ensta.fr \
--to=maurice.diamantini@ensta.fr \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).