From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39611 Path: news.gmane.org!not-for-mail From: Morgan Brassel Newsgroups: gmane.comp.tex.context Subject: Re: Command \NN in table? Date: Sun, 23 Mar 2008 16:41:35 +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 1206288541 8490 80.91.229.12 (23 Mar 2008 16:09:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Mar 2008 16:09:01 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 23 17:09: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 1JdSlG-0006lO-CP for gctc-ntg-context-518@m.gmane.org; Sun, 23 Mar 2008 17:09:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E7E971FB5A; Sun, 23 Mar 2008 17:08: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 25449-03-3; Sun, 23 Mar 2008 17:08:10 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 17AD31FBB5; Sun, 23 Mar 2008 17:08:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2D2541FBAC for ; Sun, 23 Mar 2008 17:08: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 25506-02-4 for ; Sun, 23 Mar 2008 17:07:32 +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 4E0CA1FC90 for ; Sun, 23 Mar 2008 16:41:38 +0100 (CET) Original-Received: from smtp1-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp1-g19.free.fr (Postfix) with ESMTP id F2AF21AB303 for ; Sun, 23 Mar 2008 16:41:37 +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 C75BB1AB2F6 for ; Sun, 23 Mar 2008 16:41:37 +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:39611 Archived-At: > 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) 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? Thanks for your time! Morgan \setdigitmode 2 \define\NN{\NC\digits} \starttext \starttabulate[|r|] \NN 1.@@ \AR \NN 1.11 \AR \NC hello \AR \stoptabulate \starttable[|r|] \NN 1.@@ \AR \NN 1.11 \AR \NC hello \AR \stoptable \starttable[|b{\digits}r|] \NC 1.@@ \AR \NC 1.11 \AR \NC hello \AR \stoptable \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________