ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Duncan Hothersall <dh@capdm.com>
Subject: Re: total with of TABLE ?
Date: Fri, 22 Apr 2005 11:11:38 +0100	[thread overview]
Message-ID: <4268CDDA.3020408@capdm.com> (raw)
In-Reply-To: <20050422100003.61A93127E9@ronja.ntg.nl>

Luigi wrote:

> \SetTableToWidth{10cm} \starttable[|c|c|c|]...\stoptable set width to
> 10 cm, but if I  don't care about cell I can have an overfull box.
> 
> So the problem seem to be "Can I set the total width of a TABLE using
> a macros like \setupTABLE[tablewidth=10cm] ?"
> 
> To solve this problem, I usually set every cell width using 
> \setupTABLE[x][n][width=..];
> 
> 
> But with \setupTABLE[tablewidth=...] I will  avoid to specify every
> single cell width, and the TABLE will find the right dimensions.
> 
> I will look into core-ntb.tex.
> 
> luigi

If you want your TABLE to find natural column widths to fit the content,
use [option=stretch] on the \bTABLE command. (NB it doesn't work as an
option to \setupTABLE, only on the actual \bTABLE.)

Then, assuming you don't need splitting over pages, you can set your
TABLE inside a vbox to define its width. (If you do need splitting, try
putting the TABLE into a textbackground - with no background color set
unless you want it - and set the width and/or margins of that?)

Hope that helps.

Duncan

       reply	other threads:[~2005-04-22 10:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20050422100003.61A93127E9@ronja.ntg.nl>
2005-04-22 10:11 ` Duncan Hothersall [this message]
2005-04-22 10:27   ` luigi.scarso
2005-04-23  7:25 Steffen Wolfrum
  -- strict thread matches above, loose matches on Subject: below --
2005-04-22 15:39 Steffen Wolfrum
2005-04-22 14:08 Steffen Wolfrum
2005-04-22 13:52 Steffen Wolfrum
2005-04-21 13:46 Steffen Wolfrum
2005-04-21 10:47 Steffen Wolfrum
2005-04-21 11:27 ` luigi.scarso
2005-04-21 17:42   ` luigi.scarso
2005-04-21 19:17     ` Peter Münster
2005-04-22  7:30       ` luigi.scarso
2005-04-22  9:35         ` luigi.scarso

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=4268CDDA.3020408@capdm.com \
    --to=dh@capdm.com \
    --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).