From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77583 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: How to draw a red frame of a row in a matrix? Date: Wed, 25 Jul 2012 14:22:39 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1343218981 2985 80.91.229.3 (25 Jul 2012 12:23:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Jul 2012 12:23:01 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 25 14:23:01 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Su0cF-0002dn-B8 for gctc-ntg-context-518@m.gmane.org; Wed, 25 Jul 2012 14:22:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 37A8F102B9; Wed, 25 Jul 2012 14:22:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mRbJY1U55zAr; Wed, 25 Jul 2012 14:22:55 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id BC95110236; Wed, 25 Jul 2012 14:22:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B540210236 for ; Wed, 25 Jul 2012 14:22:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id u0ub3pXrCtUD for ; Wed, 25 Jul 2012 14:22:52 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id C39E91020D for ; Wed, 25 Jul 2012 14:22:52 +0200 (CEST) Original-Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q6PCMhmZ030219 for ; Wed, 25 Jul 2012 14:22:47 +0200 Original-Received: by wgbdt14 with SMTP id dt14so538738wgb.2 for ; Wed, 25 Jul 2012 05:22:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=t8/SxIxQyBeJ22oERE8UQK02CgpYE4LsMvc8Yn3DG0M=; b=iuY2M4WNTMK7/SWJxZDlqFhnUQk/vDRylQoSry/L3QgMz3dkNbQENPeWUVIAxcbnLR nWI0eU4OWQ7BPElrTX77RGZTRhpAEQtX3KwodeHy619zP+61PhdpoTXqlrelZTDFg92r joyhtW4KPRjrlIrDHaIYQZ+IXljiwElAH/zBoMG9m5r2OneNA2K2lJ6qpofdvSLlIkef ndH+N9hTEK3uU0aALNTX0IzkSG65vXipVLvADHmgw99zGc5A97mwQh/lLr5WI+IX0Ijx dtbjCPexpMHoNlRWiiO4ykFLvB3a7BqAsJfWJ5fY0CpbmImoSL02P2Ni/6OmpL4kQisA yrjQ== Original-Received: by 10.217.5.72 with SMTP id v50mr171965wes.101.1343218962884; Wed, 25 Jul 2012 05:22:42 -0700 (PDT) Original-Received: from new-host-5.home (AOrleans-553-1-25-60.w90-24.abo.wanadoo.fr. [90.24.127.60]) by mx.google.com with ESMTPS id h9sm2359523wiz.1.2012.07.25.05.22.41 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 Jul 2012 05:22:41 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1278) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.45; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08HCAmHi5 - da69f2700899 - 20120725 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:77583 Archived-At: 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 ___________________________________________________________________________________