ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \startcases...\stopcases alignment
@ 2010-09-28  0:54 Martin 'golodhrim' Scholz
  2010-09-28  1:07 ` Aditya Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Martin 'golodhrim' Scholz @ 2010-09-28  0:54 UTC (permalink / raw)
  To: ntg-context

Hi everyone,

I've got one big question,

if I type something like

\startcases
\NC A \NC B\NR
\NC CCCCC \NC DDDDD
\stopcases

Both the A and B are left justified and I would like to have them 
horizontally centered above the CCCCC and DDDDD. Is there a way to do so 
without a matrix usage or is for that the matrix the only solution...

Greetings
-- 
Martin 'golodhrim' Scholz
Auf dem Sattler 4
34516 Ederbringhausen
Germany
Phone: +49 6454 799623
mobile: +49 176 63301749
Fax: +49 6454 7990138
e-Mail: scholz.m82@googlemail.com

I think we're in trouble.
		-- Han Solo

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: \startcases...\stopcases alignment
  2010-09-28  0:54 \startcases...\stopcases alignment Martin 'golodhrim' Scholz
@ 2010-09-28  1:07 ` Aditya Mahajan
  2010-09-28 12:01   ` Martin 'golodhrim' Scholz
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2010-09-28  1:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 28 Sep 2010, Martin 'golodhrim' Scholz wrote:

> Hi everyone,
>
> I've got one big question,
>
> if I type something like
>
> \startcases
> \NC A \NC B\NR
> \NC CCCCC \NC DDDDD
> \stopcases
>
> Both the A and B are left justified and I would like to have them
> horizontally centered above the CCCCC and DDDDD. Is there a way to do so
> without a matrix usage or is for that the matrix the only solution...

Currently, mathcases do not accept an align key. So matrix is the only 
solution.

\definemathmatrix
    [cases]
    [align=middle, left=\left\{\, right=\right.]

should work.

Aditya
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: \startcases...\stopcases alignment
  2010-09-28  1:07 ` Aditya Mahajan
@ 2010-09-28 12:01   ` Martin 'golodhrim' Scholz
  0 siblings, 0 replies; 3+ messages in thread
From: Martin 'golodhrim' Scholz @ 2010-09-28 12:01 UTC (permalink / raw)
  To: ntg-context

On Mon, 27 Sep 2010 21:07:18 -0400, Aditya Mahajan wrote:

> On Tue, 28 Sep 2010, Martin 'golodhrim' Scholz wrote:
> 
>> Hi everyone,
>>
>> I've got one big question,
>>
>> if I type something like
>>
>> \startcases
>> \NC A \NC B\NR
>> \NC CCCCC \NC DDDDD
>> \stopcases
>>
>> Both the A and B are left justified and I would like to have them
>> horizontally centered above the CCCCC and DDDDD. Is there a way to do
>> so without a matrix usage or is for that the matrix the only
>> solution...
> 
> Currently, mathcases do not accept an align key. So matrix is the only
> solution.
> 
> \definemathmatrix
>     [cases]
>     [align=middle, left=\left\{\, right=\right.]
> 
> should work.
> 
> Aditya
> 

Thanks for the fast help Aditya.

-- 
Martin 'golodhrim' Scholz
Auf dem Sattler 4
34516 Ederbringhausen
Germany
Phone: +49 6454 799623
mobile: +49 176 63301749
Fax: +49 6454 7990138
e-Mail: scholz.m82@googlemail.com

What an artist dies with me!
		-- Nero

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2010-09-28 12:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-28  0:54 \startcases...\stopcases alignment Martin 'golodhrim' Scholz
2010-09-28  1:07 ` Aditya Mahajan
2010-09-28 12:01   ` Martin 'golodhrim' Scholz

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).