From: nico <nicolas.marsgui@libertysurf.fr>
Subject: Re: Table column width on spanned cells
Date: Mon, 17 Apr 2006 20:32:41 +0200 [thread overview]
Message-ID: <ops750grcg9niby6@localhost> (raw)
In-Reply-To: <44438AE7.6050300@wxs.nl>
On Mon, 17 Apr 2006 14:32:39 +0200, Hans Hagen <pragma@wxs.nl> wrote:
> nico wrote:
>> Hello,
>>
>> In the following example using the "nc" option, the 3 middle columns
>> don't
>> fit the width option. It seems that the table tries to fit to the page
>> width instead.
>>
>> \starttext
>>
>> \bTABLE[frame=on,width=3em]
>> \bTR \bTD[nc=2] A \eTD \bTD x \eTD \bTD[nc=2] B \eTD \eTR
>> \bTR \bTD X \eTD \bTD[nc=3] C \eTD \bTD x \eTD \eTR
>> \bTR \bTD[nc=2] D \eTD \bTD x \eTD \bTD[nc=2] E \eTD \eTR
>> \eTABLE
>>
>> \stoptext
>>
> there is probably a good reason for that (but forgot what),
>
> \squeezeTBLspanfalse
>
> will give you a different result;
Yes, thanks, it works fine for me.
> a possible patch is:
>
> \newif\ifautosqueezeTBLspan \autosqueezeTBLspantrue % NEW
> [...]
>
> but i'm not sure if it will not break other situations, so please do
> some harsh testing
No need for deep testing :-) Any table without a width option fails.
Example:
\bTABLE[frame=on]
\bTR \bTD A \eTD \bTD x \eTD \bTD B \eTD \eTR
\eTABLE
! Missing number, treated as zero.
<to be read again>
f
\v!fit ->f
it
\doifdimensionelse ...mensionelse \scratchdimen #1
pt\relax
<argument> ...pan \doifdimensionelse \tbltblwidth
\donefalse \donetrue
\else...
\secondoftwoarguments #1#2->#2
\handleTBLcell ... \donetrue \else \donetrue \fi }
\ifdone \ifnum 0\number
\g...
...
l.22 \eTABLE
What is the expected benefit of the patch in comparison with switching off
the squeeze stuff, since I haven't seen yet a side effect of using
\squeezeTBLspanfalse ?
Regards,
BG
prev parent reply other threads:[~2006-04-17 18:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-17 11:19 nico
2006-04-17 12:32 ` Hans Hagen
2006-04-17 18:32 ` nico [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=ops750grcg9niby6@localhost \
--to=nicolas.marsgui@libertysurf.fr \
--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).