From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: How to draw a red frame of a row in a matrix?
Date: Wed, 25 Jul 2012 14:22:39 +0200 [thread overview]
Message-ID: <E986F300-CC6F-41A0-BC0F-35979D0D18BA@gmail.com> (raw)
In-Reply-To: <E4B96A62-FB18-40C6-A8D6-5844EBF2CE73@me.com>
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 (\,},right={\,\right)}]
\NC\startmatrix[left=,right=,]
\NC a_{11} \NC a_{12} \NC \dots \NC a_{1n} \NR
\NC \vdots \NC \vdots \NC \vdots \NC \vdots \NR
\stopmatrix\NR
\NC\RedMath{\startmatrix[left=,right=,]
\NC a_{i1} \NC a_{i2} \NC \cdots \NC a_{in} \NR
\stopmatrix}\NR
\NC\startmatrix[left=,right=,]
\NC \vdots \NC \vdots \NC \ddots \NC \vdots \NR
\NC a_{m1} \NC a_{m2} \NC \cdots \NC a_{mn} \NR
\stopmatrix\NR
\stopmatrix
\stopformula
\stoptext
Best regards: OK
On 25 juil. 2012, at 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?
>
> Thank you.
>
> Best regards,
>
> Dalyoung
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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 12:22 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
2012-07-25 15:28 ` dalyoung
2012-07-25 12:22 ` Otared Kavian [this message]
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=E986F300-CC6F-41A0-BC0F-35979D0D18BA@gmail.com \
--to=otared@gmail.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).