ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Natural table + interlinespacing
Date: Wed, 11 Oct 2006 21:55:45 +0200	[thread overview]
Message-ID: <452D4C41.1020300@wxs.nl> (raw)
In-Reply-To: <6faad9f00610110829y6cd447dand5f4b9ea3156aec3@mail.gmail.com>

Mojca Miklavec wrote:
> I don't know if we're talking about the same problem, but what I hate
> about natural tables as well (although I use them all the time) is
> very bad spacing: horizontal offset is too narrow and vertical offset
> is too big (well, it also depends on content, but in general
> "\starttable/tabulate" looks much better regarding spacing).
>
> If I want smaller table I usually do
> \startbuffer[name]
> .... table ...
> \stopbuffer
> \externalfigure[\jobname-name.tmp][scale=...]
>
> but that is not *the* solution. Tables still look "bad" that way. The
> main problem is that there is no special parameter for "horizonal
> offset" and "vertical offset" for \framed, otherwise the user could
> modify that at least to some extent. I have no idea how "usual tables"
> create "nice spacing".
>   
the ofsset is around all edged (maybe some day i will add more offsets but only when my machine is 10 times faster) 

the vertical spacing is just as in normal text and is detemined by the strutheight / depth and lineheight; of course you can change that but it may make your docs sensitive for unequal spacing 

tabulate uses the line parameters as well  and the other table mechanism as (imo) bad spacing in paragraphs anyway 

anyhow, you can make 'm as ugly as you want 

\starttext

\setupcolors[state=start]

\startsetups mojca
    \setupinterlinespace[.8]
    \leftskip2em
    \rightskip2em
\stopsetups

\setupTABLE [setups=mojca]

\setupTABLE [y]    [first][background=color,backgroundcolor=blue,frame=off,bottomframe=on,topframe=on,framecolor=white]
\setupTABLE [first][first][backgroundcorner=2,corner=10,frame=on]
\setupTABLE [last] [first][backgroundcorner=4,corner=12,frame=on]

\setupTABLE [row]  [each] [background=color,backgroundcolor=blue,frame=on,framecolor=white]
\setupTABLE [first][2]    [corner=8]
\setupTABLE [last] [2]    [corner=5]
\setupTABLE [first][last] [corner=7]
\setupTABLE [last] [last] [corner=6]

\startTEXpage
\bTABLE[frame=off,align=middle]
\bTR \bTD one   \eTD \bTD two    \eTD \bTD three \eTD \eTR
\bTR \bTD first \eTD \bTD second \eTD \bTD third \eTD \eTR
\bTR \bTD alpha \eTD \bTD beta   \eTD \bTD gamma \eTD \eTR
\eTABLE
\stopTEXpage

\stoptext

the corner trickery is in the latest beta (made that today) - don't ask why -)  

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

  reply	other threads:[~2006-10-11 19:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-11 13:00 Mari Voipio
2006-10-11 14:41 ` Wolfgang Schuster
2006-10-11 15:29   ` Mojca Miklavec
2006-10-11 19:55     ` Hans Hagen [this message]
2006-10-11 19:26 ` 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=452D4C41.1020300@wxs.nl \
    --to=pragma@wxs.nl \
    --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).