Hi everyone! I appologise if this question is answered before. I was trying to do some math in ConTeXt today, but failed. What I wanted to do was something similar to the \begin{cases}\end{cases} thing in LaTeX (amsmath?). For the non-LaTeX-math-users, its something like this: f(x)= \begin{cases} 0 & \text{if}\ x<0\\ 1 & \text{if}\ x\geq 0 \end{cases} and one gets something like this: / 0 if x<0 f(x) = < \ 1 if x>=0 I didn't find any commands that did this so I searched alittle in the maillist archive and didn't find any solution to it. Are the amsmath commands available in one or another way or are the implemented somehow? I found newmat and m-math but I didn't find a solution in either of them. Are there any docs about how to type math in ConTeXt? I am also interested in things that looks like eqnarray and other environments in LaTeX's amsmath... Thanks in advance, Micke P
Hi, On Wed, 29 Jan 2003, Mikael Persson wrote:
and one gets something like this: / 0 if x<0 f(x) = < \ 1 if x>=0
How about: $$ f(x) = \cases{1, & $x = 0$\cr \frac{1}{x} & $x \ne 0$\cr} $$ \bye
I didn't find any commands that did this so I searched alittle in the maillist archive and didn't find any solution to it. This is part of plain-TeX.
Tobias
On mercredi, jan 29, 2003, at 19:06 Europe/Paris, Mikael Persson wrote:
Hi everyone!
I appologise if this question is answered before.
I was trying to do some math in ConTeXt today, but failed. What I wanted to do was something similar to the \begin{cases}\end{cases} thing in LaTeX (amsmath?). For the non-LaTeX-math-users, its something like this:
f(x)= \begin{cases} 0 & \text{if}\ x<0\\ 1 & \text{if}\ x\geq 0 \end{cases}
and one gets something like this:
/ 0 if x<0 f(x) = < \ 1 if x>=0
I didn't find any commands that did this so I searched alittle in the maillist archive and didn't find any solution to it.
Are the amsmath commands available in one or another way or are the implemented somehow?
I found newmat and m-math but I didn't find a solution in either of them.
Are there any docs about how to type math in ConTeXt? I am also interested in things that looks like eqnarray and other environments in LaTeX's amsmath...
Thanks in advance, Micke P _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Hi, You can use the Plain TeX structures \cases and \eqalign. here is an example: \starttext Let the function $f$ be defined by \placeformula[-] $$f(x) := \cases{ \eqalign{ & 1 \cr & 2 \cr & 3 \cr }\qquad \eqalign{ &\hbox{if }\, x<-1 \cr &\hbox{if }\, -1\leq x \leq +2 \cr &\hbox{if }\, x >+ 2 \cr }\cr }$$ \stoptext Regards: OK
On Wed, 29 Jan 2003 19:43:47 +0100
Otared Kavian
On mercredi, jan 29, 2003, at 19:06 Europe/Paris, Mikael Persson wrote:
Hi everyone!
I appologise if this question is answered before.
I was trying to do some math in ConTeXt today, but failed. What I wanted to do was something similar to the \begin{cases}\end{cases} thing in LaTeX (amsmath?). For the non-LaTeX-math-users, its something like this:
f(x)= \begin{cases} 0 & \text{if}\ x<0\\ 1 & \text{if}\ x\geq 0 \end{cases}
and one gets something like this:
/ 0 if x<0 f(x) = < \ 1 if x>=0
I didn't find any commands that did this so I searched alittle in the maillist archive and didn't find any solution to it.
Are the amsmath commands available in one or another way or are the implemented somehow?
I found newmat and m-math but I didn't find a solution in either of them.
Are there any docs about how to type math in ConTeXt? I am also interested in things that looks like eqnarray and other environments in LaTeX's amsmath...
Thanks in advance, Micke P _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Hi,
You can use the Plain TeX structures \cases and \eqalign. here is an example:
\starttext Let the function $f$ be defined by \placeformula[-] $$f(x) := \cases{ \eqalign{ & 1 \cr & 2 \cr & 3 \cr }\qquad \eqalign{ &\hbox{if }\, x<-1 \cr &\hbox{if }\, -1\leq x \leq +2 \cr &\hbox{if }\, x >+ 2 \cr }\cr }$$
\stoptext
Regards: OK
Thank you so much! Both of you. Regards, Micke P
From: Mikael Persson
Hi everyone!
I appologise if this question is answered before.
I was trying to do some math in ConTeXt today, but failed. What I wanted to do was something similar to the \begin{cases}\end{cases} thing in LaTeX (amsmath?). For the non-LaTeX-math-users, its something like this:
f(x)= \begin{cases} 0 & \text{if}\ x<0\\ 1 & \text{if}\ x\geq 0 \end{cases}
\placeformula[-] \startformula f(x) = \cases{0 & $x < 0$\cr 1 & $x \geq 0$\cr} \stopformula
and one gets something like this:
/ 0 if x<0 f(x) = < \ 1 if x>=0
Marko
participants (4)
-
Marko Schuetz
-
Mikael Persson
-
Otared Kavian
-
Tobias Burnus