From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39614 Path: news.gmane.org!not-for-mail From: Morgan Brassel Newsgroups: gmane.comp.tex.context Subject: Re: Command \NN in table? Date: Mon, 24 Mar 2008 00:56:23 +0100 (CET) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206316680 4846 80.91.229.12 (23 Mar 2008 23:58:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Mar 2008 23:58:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 24 00:58:30 2008 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 lo.gmane.org with esmtp (Exim 4.50) id 1Jda58-0001D2-MG for gctc-ntg-context-518@m.gmane.org; Mon, 24 Mar 2008 00:58:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F0AE81FC09; Mon, 24 Mar 2008 00:57:53 +0100 (CET) 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 31569-06-3; Mon, 24 Mar 2008 00:57:08 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8967F1FBBD; Mon, 24 Mar 2008 00:57:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7E41A1FB7E for ; Mon, 24 Mar 2008 00:57:06 +0100 (CET) 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 31230-04 for ; Mon, 24 Mar 2008 00:56:31 +0100 (CET) Original-Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by ronja.ntg.nl (Postfix) with ESMTP id 88B7C1FBBD for ; Mon, 24 Mar 2008 00:56:31 +0100 (CET) Original-Received: from smtp1-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp1-g19.free.fr (Postfix) with ESMTP id 5ECCA1AB2BF for ; Mon, 24 Mar 2008 00:56:31 +0100 (CET) Original-Received: from [192.168.0.32] (pas38-3-82-226-102-214.fbx.proxad.net [82.226.102.214]) by smtp1-g19.free.fr (Postfix) with ESMTP id 304C01AB2AA for ; Mon, 24 Mar 2008 00:56:31 +0100 (CET) X-X-Sender: brassel@leo In-Reply-To: User-Agent: Alpine 1.10 (DEB 962 2008-03-14) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:39614 Archived-At: On Sun, 23 Mar 2008, Aditya Mahajan wrote: > On Sun, 23 Mar 2008, Morgan Brassel wrote: > >> >>> Does this do what you want? >>> >>> %\TracingFormats=1 >>> \starttable[|b{\digits}r|] >>> \NC 1.@@ \NC \AR >>> \NC 1.1@ \NC \AR >>> \NC 1.11 \NC \AR >>> \NC 11.11 \NC \AR >>> \stoptable >>> >>> Aditya >> >> Hi Aditya, >> >> Thank you for this solution. I saw it on the wiki before I sent my first >> e-mail: it is actually less powerful than a \NN command, as it applies to >> the whole column, whereas \NN can apply to a single cell. (See the example >> below) > > The table way is the opposite. You can specify what applies to all the > columns, and then rule out specific columns using \REF[..]. > >> My current solution is to define a new command >> \define\NN{\NC\digits} >> >> It (apparently) does not clash with the \NN command in tabulate, but it >> seems like a dangerous hack. What is your opinion? > > This is pretty safe w.r.t tabulate. I do not think that any other context > feature uses \NN command, so this will only clash with user commands. > > Aditya Ok, so I think I'll stick with this solution for now. Thank you for all your answers, Aditya! Best wishes, Morgan ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________