ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: ntg-context@ntg.nl
Subject: Re: Booktabs equivalent in Context
Date: Thu, 09 Aug 2007 12:14:25 -0400	[thread overview]
Message-ID: <20070809121425.0kubel8tck88csog@web.mail.umich.edu> (raw)
In-Reply-To: <115224fb0708090156s12f058ecrb90f78d9d99f0a49@mail.gmail.com>

Quoting Wolfgang Schuster <schuster.wolfgang@googlemail.com>:

> 2007/8/9, Aditya Mahajan <adityam@umich.edu>:
>> On Thu, 9 Aug 2007, Wolfgang Schuster wrote:
>>
>> > 2007/8/9, Hamid Kamrani <hamid.kamrani@gmail.com>:
>> >> Aditya,
>> >>
>> >> In the example you give with CMID you have only two column preambles
>> >> whereas the table has 3 columns and if one adds the missing preamble
>> >> then one gets an error. Some how your new code breaks the calculation
>> >> for number of columns.
>> >>
>> >> -Hamid
>> >
>> > He forgot only to put a \NC before the \AR.
>>
>> Sorry about that. I thought I pasted from a correctly running example.
>>
>> Here is another attempt, which I feel is the cleanest way to go about
>> this whole thing. Right now the skip between the columns is not
>> configurable, but it should be possible to use the get the value of
>> the skip.
>>
>> The attached code typesets an example that Wolfgang had sent off-list.
>> I have only changed two lines of the table.tex.
>>
>> Aditya
>
> Hi Aditya,
>
> what do you think about
>
> \setuptables
>  [\c!columndistance=2em]

This goes against the way I understand table macros. With this, you can 
only have equal width columns. In tables, you can specify specific 
widths of specific s and o keys.

AFAIU, the table macros divide that the specified tabskip by 2, and 
place it in the data column. Since the rule column comes next, the rule 
column automatically gets the same tabskip, so in appearance we the 
specified column width.

This is also the reason why cmidrules do not work. If you specify a 
hrule inside a data column, it spans half of the visual space between 
the columns. What needs to be done is that the glue be added inside a 
local group to the rule column, with the global tabskip set to zero.

The previous solution that I posted adds a 2em tabskip glue to the rule 
column, and a 0pt tabskip glue to the data column. After thinking again 
about it, I think that this is not the right way. There is no need to 
add a 0pt glue to the data column. We can add the glue to the rule 
column inside a group.

I will see if I can get this working.

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:[~2007-08-09 16:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-03 21:10 Aditya Mahajan
2007-08-04  7:28 ` Patrick Gundlach
2007-08-06  1:13   ` Aditya Mahajan
2007-08-11 21:05     ` Patrick Gundlach
2007-08-08 12:03 ` Johannes Graumann
2007-08-08 22:23   ` Aditya Mahajan
2007-08-09  5:06     ` Hamid Kamrani
2007-08-09  6:43       ` Wolfgang Schuster
2007-08-09  7:43         ` Aditya Mahajan
2007-08-09  8:56           ` Wolfgang Schuster
2007-08-09 16:14             ` Aditya Mahajan [this message]
2007-08-10  5:44               ` Wolfgang Schuster
2007-08-11 21:05           ` Patrick Gundlach
2007-08-09 16:01         ` Hamid Kamrani

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=20070809121425.0kubel8tck88csog@web.mail.umich.edu \
    --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).