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: Mon, 24 Mar 2008 00:56:23 +0100 (CET)	[thread overview]
Message-ID: <alpine.DEB.1.10.0803240054100.3363@leo> (raw)
In-Reply-To: <alpine.DEB.1.00.0803231940170.12407@nqv-yncgbc>



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
___________________________________________________________________________________


      reply	other threads:[~2008-03-23 23:56 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
2008-03-23 23:44           ` Aditya Mahajan
2008-03-23 23:56             ` Morgan Brassel [this message]

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.0803240054100.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).