ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Morgan Brassel <morgan.brassel@free.fr>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Command \NN in table?
Date: Sun, 23 Mar 2008 16:41:35 +0100 (CET)	[thread overview]
Message-ID: <alpine.DEB.1.10.0803231623200.3363@leo> (raw)
In-Reply-To: <alpine.DEB.1.00.0803222335550.10686@nqv-yncgbc>


> 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
___________________________________________________________________________________


  reply	other threads:[~2008-03-23 15:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-17  4:27 Morgan Brassel
2008-03-22 13:38 ` Morgan Brassel
2008-03-22 14:12   ` Aditya Mahajan
2008-03-22 15:02     ` Morgan Brassel
2008-03-23  3:45       ` Aditya Mahajan
2008-03-23 15:41         ` Morgan Brassel [this message]
2008-03-23 23:44           ` Aditya Mahajan
2008-03-23 23:56             ` Morgan Brassel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.1.10.0803231623200.3363@leo \
    --to=morgan.brassel@free.fr \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).