ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: Updated My Way on math alignment
Date: Fri, 4 Aug 2006 11:59:08 -0400 (EDT)	[thread overview]
Message-ID: <Pine.WNT.4.63.0608041154340.2408@nqvgln> (raw)
In-Reply-To: <44D36A82.4010807@cs.com>

Hi Wim,

On Fri, 4 Aug 2006, WN wrote:

> I have a question about \startcases .. \stopcases.
> I am trying to adjust the distance of the cases and the right brace, the
> left brace is empty,
> see example below. Is this possible ?

It is. You can do it in different ways, depending on what you like.

> % Example
> \starttext
> \startformula
> *\startcases[left={\left.},right={\right\}}]*
> \NC (\lambda + \mu ) \cdot a = \lambda \cdot a + \mu \cdot a \NC \NR
> \NC \lambda ( a + b ) = \lambda \cdot a + \lambda \cdot b  \NC \NR
> \stopcases
> \text{(distributieve eigenschappen)}
> \stopformula
> \stoptext


  \starttext

The original one.

  \startformula
  \startcases[left={\left.},right={\right\}}]
  \NC (\lambda + \mu ) \cdot a = \lambda \cdot a + \mu \cdot a \NC \NR
  \NC \lambda ( a + b ) = \lambda \cdot a + \lambda \cdot b  \NC \NR
  \stopcases
  \text{(distributieve eigenschappen)}
  \stopformula

You can reduce the \quotation{width} of the cases,

\startformula
\startcases[left={\left.},right={\right\}},numberdistance=0pt]
  \NC (\lambda + \mu ) \cdot a = \lambda \cdot a + \mu \cdot a \NC \NR
  \NC \lambda ( a + b ) = \lambda \cdot a + \lambda \cdot b  \NC \NR
  \stopcases
  \text{(distributieve eigenschappen)}
  \stopformula

or use a matrix (only one column)

\startformula
   \startmatrix[left={\left.},right={\right\}}]
     \NC (\lambda + \mu ) \cdot a = \lambda \cdot a + \mu \cdot a \NR
     \NC \lambda ( a + b ) = \lambda \cdot a + \lambda \cdot b    \NR
  \stopmatrix
  \text{(distributieve eigenschappen)}
  \stopformula

maybe a right aligned one

\startformula
   \startmatrix[left={\left.},right={\right\}},align=right]
     \NC (\lambda + \mu ) \cdot a = \lambda \cdot a + \mu \cdot a \NR
     \NC \lambda ( a + b ) = \lambda \cdot a + \lambda \cdot b    \NR
  \stopmatrix
  \text{(distributieve eigenschappen)}
  \stopformula

  and this is how I would do it

\definemathmatrix[aligned][n=2,align={right,left},distance=0pt]

\startformula
   \startaligned[left={\left.},right={\right\}}]
     \NC (\lambda + \mu ) \cdot a \NC{} = \lambda \cdot a + \mu \cdot a 
\NR
     \NC \lambda ( a + b ) \NC {}= \lambda \cdot a + \lambda \cdot b 
\NR
\stopaligned
  \text{(distributieve eigenschappen)}
  \stopformula

Aditya

  reply	other threads:[~2006-08-04 15:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-03 12:46 Aditya Mahajan
2006-08-04 15:40 ` WN
2006-08-04 15:59   ` Aditya Mahajan [this message]
2006-08-05 13:55     ` WN

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=Pine.WNT.4.63.0608041154340.2408@nqvgln \
    --to=adityam@umich.edu \
    --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).