ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Command \NN in table?
Date: Sat, 22 Mar 2008 23:45:16 -0400 (EDT)	[thread overview]
Message-ID: <alpine.DEB.1.00.0803222335550.10686@nqv-yncgbc> (raw)
In-Reply-To: <alpine.DEB.1.10.0803221543440.3716@leo>

On Sat, 22 Mar 2008, Morgan Brassel wrote:

>
>> What exactly are you trying to achieve? I do not completely know all the
>> features of digits. But table has a numerical columns n and q, see
>> http://www.tug.org/TUGboat/Articles/tb29-1/tb91mahajan.pdf. There are also
>> \HC (hook column) which can do certain things. Can you give an example of
>> a table (placing \digit commands by hand)?
>
> Thank you for your quick answer, Aditya.
> In fact, I saw this example at the end of Hans's This Way #3:
>
> \starttext
> \starttabulate[|r|]
> \NN 1.@@  \NR
> \NN 1.1@  \NR
> \NN 1.11  \NR
> \NN 11.11 \NR
> \stoptabulate
> \stoptext
>
> and I would like to get the same result replacing tabulate by table...
> What I like about \digits (and \NN) is that you can change the number
> format (english Vs french for example) without rewriting anything.

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

___________________________________________________________________________________
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  3:45 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 [this message]
2008-03-23 15:41         ` Morgan Brassel
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.00.0803222335550.10686@nqv-yncgbc \
    --to=adityam@umich.edu \
    --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).