Re: [NTG-context] Updated My Way on math alignment

2006-08-05 Thread WN
[EMAIL PROTECTED] 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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Updated My Way on math alignment

2006-08-04 Thread WN
[EMAIL PROTECTED] 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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Updated My Way on math alignment

2006-08-04 Thread Aditya Mahajan
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


[NTG-context] Updated My Way on math alignment

2006-08-03 Thread Aditya Mahajan
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