* Updated My Way on math alignment
@ 2006-08-03 12:46 Aditya Mahajan
2006-08-04 15:40 ` WN
0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2006-08-03 12:46 UTC (permalink / raw)
Hi,
I have updated myway on using alignment. It now also explains
features of matrix (similar to array of latex), cases, substack and
intertext. Most of the discussion on mathalignment (similar to align
and gather environments of latex) is the same as before.
http://dl.contextgarden.net/myway/mathalign.pdf
source
http://dl.contextgarden.net/myway/mathalign.tex
Taco, I am also describing how to use style=... feature of matrix that
you sent a while back, hoping that it will make to the core :-)
Aditya
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Updated My Way on math alignment
2006-08-03 12:46 Updated My Way on math alignment Aditya Mahajan
@ 2006-08-04 15:40 ` WN
2006-08-04 15:59 ` Aditya Mahajan
0 siblings, 1 reply; 4+ messages in thread
From: WN @ 2006-08-04 15:40 UTC (permalink / raw)
adityam@umich.edu wrote:
> Hi,
> I have updated myway on using alignment. It now also explains
> features of matrix (similar to array of latex), cases, substack and
> intertext. Most of the discussion on mathalignment (similar to align
> and gather environments of latex) is the same as before.
>
> http://dl.contextgarden.net/myway/mathalign.pdf
>
> source
>
> http://dl.contextgarden.net/myway/mathalign.tex
>
> Taco, I am also describing how to use style=... feature of matrix that
> you sent a while back, hoping that it will make to the core :-)
>
> Aditya
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
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 ?
Kind regards
Wim
% 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Updated My Way on math alignment
2006-08-04 15:40 ` WN
@ 2006-08-04 15:59 ` Aditya Mahajan
2006-08-05 13:55 ` WN
0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2006-08-04 15:59 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Updated My Way on math alignment
2006-08-04 15:59 ` Aditya Mahajan
@ 2006-08-05 13:55 ` WN
0 siblings, 0 replies; 4+ messages in thread
From: WN @ 2006-08-05 13:55 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-08-05 13:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-03 12:46 Updated My Way on math alignment Aditya Mahajan
2006-08-04 15:40 ` WN
2006-08-04 15:59 ` Aditya Mahajan
2006-08-05 13:55 ` WN
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).