From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27074 Path: news.gmane.org!not-for-mail From: olivier Turlier Newsgroups: gmane.comp.tex.context Subject: Re: long style of a row to put in a macro Date: Tue, 11 Apr 2006 13:45:26 +0200 Message-ID: References: <443A4CF8.2070500@wxs.nl> <443A53D5.3040108@seznam.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1144755960 8091 80.91.229.2 (11 Apr 2006 11:46:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Apr 2006 11:46:00 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 11 13:45:53 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FTHJg-0007Ks-Fu for gctc-ntg-context-518@m.gmane.org; Tue, 11 Apr 2006 13:45:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 602E012795; Tue, 11 Apr 2006 13:45:51 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30081-02; Tue, 11 Apr 2006 13:45:45 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3D85912772; Tue, 11 Apr 2006 13:45:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 078D012772 for ; Tue, 11 Apr 2006 13:45:44 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30080-02 for ; Tue, 11 Apr 2006 13:45:39 +0200 (CEST) Original-Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by ronja.ntg.nl (Postfix) with SMTP id 9E1C11276C for ; Tue, 11 Apr 2006 13:45:39 +0200 (CEST) Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FTHJM-0007I0-1A for ntg-context@ntg.nl; Tue, 11 Apr 2006 13:45:32 +0200 Original-Received: from sju13-2-82-225-94-181.fbx.proxad.net ([82.225.94.181]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Apr 2006 13:45:32 +0200 Original-Received: from o.turlier by sju13-2-82-225-94-181.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Apr 2006 13:45:32 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ntg-context@ntg.nl Original-Lines: 68 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: sju13-2-82-225-94-181.fbx.proxad.net User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:27074 Archived-At: On Mon, 10 Apr 2006 14:47:17 +0200, Vit Zyka wrote: > Hans Hagen wrote: >> olivier Turlier wrote: >> = >>>Hi everybody, >>> >>>In writing a glossary of building terms (approx. 400 entries) in a natur= al TABLE. >>> >>>For each letter, A, B, C, I want a screen background, spanning on 2 colo= mns, >>>with \bf style, etc. : this leads to a rather long definition that I do= n't wish >>>to copy on each new letter row, so I made a little macro to recall this = setup. >>> >>>This system is not working yet, so i beg your help, TIA for any answer >>> >>>%%% >>>\setupcolors[state=3Dstart] >>> >>>\starttext >>> >>>\def\Rowa#1{nc=3D2,background=3Dcolor,backgroundcolor=3Dscreen,style=3D\= bf, >>>frame=3Doff,align=3D{middle,lohi}{#1}} >>> >>>\bTABLE[frame=3Doff,width=3Dbroad,split=3Dyes] >>>\setupTABLE[column][1][style=3D\bf,align=3D{right,lohi},width=3D3cm] >>>\setupTABLE[column][2][style=3D\tf,align=3D{lohi}] >>> = >> = >> you can say odd/even etc instead of 1,3,5 = > = > Thinking about a feature request: > = > I very frequentely set every third (3,6,9,...) row with gray background = > to make wide tables well-arranged. I did it by a loop or with a script = > that generates data. Some 'everythird' equivalent to 'even' or 'odd' = > would be more strightforward. > = > Vit Maybe I was unclear, I just want to be able to recall a certain style for certain rows : the position of the rows is not regular, as in my case, it's for emphasis for each new letter (A,B,C, etc.) of glossary terms. As this def is rather long, i just wanted to make a more readable code. So I tried to put [nc=3D2,background=3Dcolor,backgroundcolor=3Dscreen,style=3D\bf,frame=3Doff= ,align=3D{right,lohi}] in \def\Rowa#1{[nc=3D2,..]{#1}} and call this def on new letter row by %\bTR \bTD [command=3D\Rowa] B \eTD \eTR % NOT WORKING \bTR \bTD[nc=3D2,background=3Dcolor,backgroundcolor=3Dscreen, style=3D\bf,frame=3Doff,align=3D{right,lohi}command=3D\Rowa]B \eTD \eTR \bTR \bTD barre \eTD \bTD \'Element de structure .. \eTD \eTR = \bTR \bTD barre comprim=E9e \eTD \bTD \'Eleme .. \eTD \eTR = \bTR \bTD [nc=3D2,background=3Dcolor,backgroundcolor=3Dscreen, style=3D\bf,frame=3Doff,align=3D{right,lohi}command=3D\Rowa]C \eTD \eTR = \bTR \bTD [command=3D\Rowa] C \eTD \eTR % NOT WORKING \bTR \bTD c.. \eTD \bTD ... \eTD \eTR This is obviousluy a minor request, since i've already copied this def on each row manually. Thanks again -- = olivier Turlier