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
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
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
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
participants (2)
-
Aditya Mahajan
-
WN