ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Math align with \startcases
Date: Mon, 19 Jan 2009 19:05:00 +0100	[thread overview]
Message-ID: <B545C2EB-9BA6-475F-9C63-3C53AD71DBF7@gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.00.0901190937480.4250@ybpnyubfg.ybpnyqbznva>


On 19 janv. 09, at 15:38, Aditya Mahajan wrote:

> On Mon, 19 Jan 2009, Otared Kavian wrote:
>
>> [...]
>> So my question is: whether one can use \startcases ...\stopcases  
>> instead of \startmatrix ... \stopmatrix in order to obtain the  
>> result of the plain TeX example?
>
> No, but there is not much difference between cases and matrix.  
> Consider:
>
> \definemathmatrix[alignedcase]
> [align={right,left,right},distance=3pt,left={\left\{},  
> right={\right.},style=\displaystyle]
> \starttext
>
> \startformula
> \startalignedcase
>  \NC -\Delta u + g(u) \NC{} = f \NC \quad\mbox{in } \Omega\NR
>  \NC {\partial u \over \partial {\bf n} } \NC{} = h(u) \NC \quad 
> \mbox{on } \partial\Omega   \NR
> \stopalignedcase
> \stopformula
>
> Aditya___________________________________________________________________________________

Thanks Aditya: actually an alternative definition in order to get what  
I mentioned in my question is the following:

\starttext
\definemathmatrix[alignedcase]
		[align={right,left,left}, % <---- instead of align={right,left,right}
		distance=3pt,
		left={\left\{},
		right={\right.},
		style=\displaystyle]

\startformula
\startalignedcase
  \NC -\Delta u + g(u) \NC{} = f \NC \quad\mbox{in } \Omega\NR
  \NC {\partial u \over \partial {\bf n} } \NC{} = h(u) \NC \quad 
\mbox{on } \partial\Omega   \NR
\stopalignedcase
\stopformula
\stoptext

Should I add this to the wiki?

Many thanks: OK

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2009-01-19 18:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-19 10:49 Otared Kavian
2009-01-19 14:38 ` Aditya Mahajan
2009-01-19 18:05   ` Otared Kavian [this message]
2009-01-19 18:49     ` Aditya Mahajan
2009-01-19 21:10       ` Otared Kavian

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=B545C2EB-9BA6-475F-9C63-3C53AD71DBF7@gmail.com \
    --to=otared@gmail.com \
    --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).