From: "luigi.scarso" <luigi.scarso@logosrl.it>
Subject: Re: total with of TABLE ?
Date: Thu, 21 Apr 2005 13:27:00 +0200 [thread overview]
Message-ID: <42678E04.8080402@logosrl.it> (raw)
In-Reply-To: <a06210200be8d340561a1@[62.134.77.76]>
Steffen Wolfrum wrote:
> Hi,
>
> a quite basic question, nevertheless I couldn'T find an answer:
>
> How do I determine the total with of a TABLE?
>
> I though it should be ...
>
> \setupTABLE[width=\textwidth]
>
> \bTABLE
> \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR
> \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR
> \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR
> \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR
> \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR
> \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR
> \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR
> \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR
> \eTABLE
>
> ... but this means that all column's INDIVIDUAL width=\textwidth !
>
> But what about the TOTAL width - regardless of the individual column's
> width?
>
With \setbox:
\setbox100=\vbox{%
\setupTABLE[...]
\bTABLE...\eTABLE%
}
ht=\the\ht100 , dp=\the\dp100 , wd= \the\wd100
and you can determine the dimensions of your table.
But I think you need to setup x dimension, so
\setupTABLE[x][width=x\textwidth]
where x = 1/number_of_columns
(x=0.25 in your example, because you have 4 columns:
so you have
\setupTABLE[x][width=0.25\textwidth]
)
luigi
next prev parent reply other threads:[~2005-04-21 11:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-21 10:47 Steffen Wolfrum
2005-04-21 11:27 ` luigi.scarso [this message]
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
2005-04-21 13:46 Steffen Wolfrum
[not found] <20050422100003.61A93127E9@ronja.ntg.nl>
2005-04-22 10:11 ` Duncan Hothersall
2005-04-22 10:27 ` luigi.scarso
2005-04-22 13:52 Steffen Wolfrum
2005-04-22 14:08 Steffen Wolfrum
2005-04-22 15:39 Steffen Wolfrum
2005-04-23 7:25 Steffen Wolfrum
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=42678E04.8080402@logosrl.it \
--to=luigi.scarso@logosrl.it \
--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).