ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: Tables on a grid
Date: Mon, 03 Dec 2001 10:10:02 +0100	[thread overview]
Message-ID: <5.1.0.14.1.20011203100312.03c16a88@server-1> (raw)
In-Reply-To: <3C09354A.7C5554C5@idaccr.org>

At 02:53 PM 12/1/2001 -0500, F. Miller Maley wrote:
>In my document, for aesthetic reasons I would like the text in my tables
>to line up on the same baseline grid used by the running text.  I have
>said \setupblank[fixed,line] and have been careful to make such things
>as section headings an integral number of lines, so everything else is
>lining up nicely; tables are the last hurdle.
>
>If I use \halign to make tables, everything works OK; I get the expected
>amount of space above and below the table and between the table and its
>caption (having said \setupfloats[before=\blank,after=\blank] and
>\setupcaptions[inbetween=\blank]).  But if I use \starttable...\stoptable,
>I get unexpected amounts of space above the table and above the
>caption, and I don't know how to control this.  Also, I have tried using
>\bTABLE...\eTABLE.  It's clear that \setupTABLE can be given various options
>accepted by \framed to alter the spacing, but I'm having trouble
>understanding how it works.  So far nothing I've tried has had the desired
>effect.
>
>Questions:
>1. What is the simplest way to get the table text to line up on the grid?
>2. Is there documentation in English for the old-style (TaBlE-based)
>    table macros in ConTeXt?  (Last time I investigated this, it seemed
>    that my choices were to pay $69 to PCTeX to buy the TaBlE macros
>    with their documentation, or to read Section 14 of the ConTeXt reference
>    manual in Dutch.)
>
>By the way, \setupcaptions[align=left] seems to align captions at the
>right, while \setupcaptions[align=right] aligns them at the left.  Perhaps
>this is fixed in a newer version of the macros?  I have 2001.2.27.

As soon as you add rules to a table, the dimensions of a line exceed the 
lineheight; the tabulate mechanism is less sensitive for this 
(\starttabulate ... \stoptabulate).

You should be aware of the fact that tex has its own opinion about spacing 
around rules. You can let context make the best of ruled material by saying:

\startlinecorrection % [blank]
\framed{...}
\stoplinecorrection

but only for 'boxed' material; some mechanisms have this build in.

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


      reply	other threads:[~2001-12-03  9:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-01 19:53 F. Miller Maley
2001-12-03  9:10 ` Hans Hagen [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=5.1.0.14.1.20011203100312.03c16a88@server-1 \
    --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).