From: WN <wneimeijer01@cs.com>
Subject: Re: Updated My Way on math alignment
Date: Sat, 05 Aug 2006 15:55:01 +0200 [thread overview]
Message-ID: <44D4A335.4000901@cs.com> (raw)
In-Reply-To: <Pine.WNT.4.63.0608041154340.2408@nqvgln>
adityam@umich.edu wrote:
> 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
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
I did not know the numberdistance existed, I would think it specifies the
distance between the columns and the number of the equation. Anyways
your solutions work like a charm.
Many thanks for your help.
Wim
prev parent reply other threads:[~2006-08-05 13:55 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
2006-08-05 13:55 ` WN [this message]
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=44D4A335.4000901@cs.com \
--to=wneimeijer01@cs.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).