ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Johannes Graumann <johannes_graumann@web.de>
Subject: Re: TABLE: 'distance' override?
Date: Sun, 23 Apr 2006 09:58:51 -0700	[thread overview]
Message-ID: <e2gc4p$b6l$1@sea.gmane.org> (raw)
In-Reply-To: <44493A24.6090701@wxs.nl>

After sleeping on this I realize that a more mechanistical answer to this 
may be more interesting.
When coding a table in LaTeX with 'booktabs' as the one shown in
http://www.idyll.org:8081/JohSite/context/table1.jpg/view, booktabs mainly
provides the commands '\bottomrule' and '\toprule', creating the heavier
start and end lines. The interrupted lines separating the table header from
the table body are coded explicitly (with a command I'm not sure is even
provided by 'booktabs'): '\cmidrule(r){1-1}\cmidrule(lr){2-2}\cmidrule(l
{3-3}' for a three-columned table. Bottomline is that while with the
distance solution in ConTeXt natural TABLEs the whole table is modified, a
solution like this only modifies the horizontal line targeted - and that
very flexible: the firs '\cmidrule' call anly shortens the rule on the
right ('(r)'), the second one on both sides ('(lr)') and the last one on
the left ('(l)').

In order to emulate my table style with TABLE there would be 4 things
necessary:
1) possibility to have top- and bottomframe formated independently
(different width - top heavy, bottom light; one continuous, one interrupted
(see 2.))
2) a new frame mode ('int'?) which interrupts a 'bottomframe=int' between
table columns with an automatism recognizing whether this is the first or
last column and only shortening the line on the right or left respectively.
3) Booktabs also provides an '\addlinespace' command for groupseparation ...
see separation between first and second body line in
http://www.idyll.org:8081/JohSite/context/table1.jpg/view
4) When defining tables in LaTeX, a definition like \tabular{@{}lll@{}}
yields horizontal lines terminating on the left and right flush with the
table content and not reaching to a column separation border beyond that.

If you wonder where I got all theses crazy ideas ;0):
http://www.tug.org/tex-archive/info/german/tabsatz/tabsatz.pdf by Axel
Reichert is the inspiring document (sorry - German only).

I'm not asking for this to be implemented, but I believe ConTeXt would
benefit from this.

Joh


Hans Hagen wrote:

> Johannes Graumann wrote:
>> Hello,
>>
>> In my quest for tables similar to what the 'booktabs' package in LaTeX
>>   
> what does booktab do then
> 
> Hans
> 
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>                                              | www.pragma-pod.nl
> -----------------------------------------------------------------

  parent reply	other threads:[~2006-04-23 16:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-20  6:05 Johannes Graumann
2006-04-21 20:01 ` Hans Hagen
2006-04-21 22:17   ` Johannes Graumann
2006-04-23 16:58   ` Johannes Graumann [this message]
2006-04-23 18:36     ` Hans Hagen
2006-04-23 18:37     ` Hans Hagen

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='e2gc4p$b6l$1@sea.gmane.org' \
    --to=johannes_graumann@web.de \
    --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).