[NTG-context] How to draw a red frame of a row in a matrix?

2012-07-25 Thread dalyoung
Dear all, I made a matrix as follows and I'd like to draw a red frame over the i-th row in a matrix. \startformula \startmatrix[left={\left (\,},right={\,\right)}] \NC a_{11} \NC a_{12} \NC \dots \NC a_{1n} \NR \NC \vdots \NC \vdots \NC \vdots \NC \vdots \NR \NC a_{i1} \NC a_{i2} \NC

Re: [NTG-context] How to draw a red frame of a row in a matrix?

2012-07-25 Thread Hans Hagen
On 25-7-2012 11:20, dalyoung wrote: Dear all, I made a matrix as follows and I'd like to draw a red frame over the i-th row in a matrix. \startformula \startmatrix[left={\left (\,},right={\,\right)}] \NC a_{11} \NC a_{12} \NC \dots \NC a_{1n} \NR \NC \vdots \NC \vdots \NC \vdots \NC \vdots

Re: [NTG-context] How to draw a red frame of a row in a matrix?

2012-07-25 Thread dalyoung
Dear Hans, Thank you for quick answer and for reminding me \mframed. \mframed is working if I enclose one term like ... \NC{\mframed[]{x+y}}\NC ...\NC\NR. But I'd like to enclose the whole row in one frame. I apply \mframed to every term and get close result except there are gaps between

Re: [NTG-context] How to draw a red frame of a row in a matrix?

2012-07-25 Thread Henning Hraban Ramm
I don’t know matrix, but otherwise you’d be better off with TABLEs, see http://wiki.contextgarden.net/TABLE Greetlings, Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] How to draw a red frame of a row in a matrix?

2012-07-25 Thread Otared Kavian
Hi Dalyoung, Is this what you want: \setupcolors[state=start] \def\RedMath{\mframed[frame=on, framecolor=red, offset=2pt, % background=color, % backgroundcolor=lightred, % backgroundoffset=2pt ]} \starttext \startformula \startmatrix[left={\left

Re: [NTG-context] How to draw a red frame of a row in a matrix?

2012-07-25 Thread dalyoung
Dear Otared, Henning Hraban, Thank you for the reply. \RedMath works! To use TABLE may be another solution. I will try soon. Thank you again. Best regards, Dalyoung ___ If your question is of interest to others

Re: [NTG-context] How to draw a red frame of a row in a matrix?

2012-07-25 Thread Wolfgang Schuster
Am 25.07.2012 um 11:43 schrieb Hans Hagen: On 25-7-2012 11:20, dalyoung wrote: Dear all, I made a matrix as follows and I'd like to draw a red frame over the i-th row in a matrix. \startformula \startmatrix[left={\left (\,},right={\,\right)}] \NC a_{11} \NC a_{12} \NC \dots \NC

Re: [NTG-context] How to draw a red frame of a row in a matrix?

2012-07-25 Thread dalyoung
Dear Wolfgang, Your both methods work nicely. And, the table method can be used to frame a column, too. Thank you. Best regards, Dalyoung ___ If your question is of interest to others as well, please add an entry