From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: dalyoung <haksan@me.com>
Subject: Re: How to draw a red frame of a row in a matrix?
Date: Wed, 25 Jul 2012 16:34:31 +0200 [thread overview]
Message-ID: <7CE946D1-9DB6-41B5-A8F5-582261E499C4@gmail.com> (raw)
In-Reply-To: <500FBFAD.3060902@wxs.nl>
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 a_{1n} \NR
>> \NC \vdots \NC \vdots \NC \vdots \NC \vdots \NR
>> \NC a_{i1} \NC a_{i2} \NC \cdots \NC a_{in} \NR
>> \NC \vdots \NC \vdots \NC \ddots \NC \vdots \NR
>> \NC a_{m1} \NC a_{m2} \NC \cdots \NC a_{mn} \NR
>> \stopmatrix
>> \stopformula
>>
>> But \frame or \inframe is not working inside matrix.
>> Is there a way to do that?
>
> maybe \mframed
He’s looking for \HL and \VL commands like the table below has to frame a complete row in the matrix.
\starttext
\startformula
\startmatrix[left={\left(\,},right={\,\right)}]
\NC a_{11} \NC a_{12} \NC \cdots \NC a_{1n} \NR
\NC \vdots \NC \vdots \NC \vdots \NC \vdots \NR
\noalign{\hrule}
\NC a_{i1} \NC a_{i2} \NC \cdots \NC a_{in} \NR
\noalign{\hrule}
\NC \vdots \NC \vdots \NC \ddots \NC \vdots \NR
\NC a_{m1} \NC a_{m2} \NC \cdots \NC a_{mn} \NR
\stopmatrix
\stopformula
\starttable[|*{4}{b{\strut}Mc|}]
\NC a_{11} \NC a_{12} \NC \cdots \NC a_{1n} \NC\NR
\NC \vdots \NC \vdots \NC \vdots \NC \vdots \NC\NR
\HL
\VL a_{i1} \NC a_{i2} \NC \cdots \NC a_{in} \VL\NR
\HL
\NC \vdots \NC \vdots \NC \ddots \NC \vdots \NC\NR
\NC a_{m1} \NC a_{m2} \NC \cdots \NC a_{mn} \NC\NR
\stoptable
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2012-07-25 14:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-25 9:20 dalyoung
2012-07-25 9:43 ` Hans Hagen
2012-07-25 11:27 ` dalyoung
2012-07-25 11:35 ` Henning Hraban Ramm
2012-07-25 14:34 ` Wolfgang Schuster [this message]
2012-07-25 15:28 ` dalyoung
2012-07-25 12:22 ` Otared Kavian
2012-07-25 14:10 dalyoung
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=7CE946D1-9DB6-41B5-A8F5-582261E499C4@gmail.com \
--to=schuster.wolfgang@gmail.com \
--cc=haksan@me.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).