From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39613 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Command \NN in table? Date: Sun, 23 Mar 2008 19:44:21 -0400 (EDT) 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 1206315881 3097 80.91.229.12 (23 Mar 2008 23:44:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Mar 2008 23:44:41 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 24 00:45:10 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 1JdZsD-0006hF-PN for gctc-ntg-context-518@m.gmane.org; Mon, 24 Mar 2008 00:45:09 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5982F1FBF6; Mon, 24 Mar 2008 00:44:33 +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 30605-04; Mon, 24 Mar 2008 00:43:45 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4B3121FBC1; Mon, 24 Mar 2008 00:43:44 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 86E911FBC1 for ; Mon, 24 Mar 2008 00:43:42 +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 31231-03-2 for ; Mon, 24 Mar 2008 00:43:08 +0100 (CET) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with ESMTP id B9F951FB74 for ; Mon, 24 Mar 2008 00:43:07 +0100 (CET) Original-Received: FROM adi-laptop.local (c-68-40-40-75.hsd1.mi.comcast.net [68.40.40.75]) BY hackers.mr.itd.umich.edu ID 47E6EB08.26D0F.16297 ; 23 Mar 2008 19:43:04 -0400 In-Reply-To: User-Agent: Alpine 1.00 (DEB 882 2007-12-20) 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:39613 Archived-At: 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________