From: Pablo Rodriguez via ntg-context <ntg-context@ntg.nl>
To: Angel M Alganza via ntg-context <ntg-context@ntg.nl>
Cc: Pablo Rodriguez <oinos@gmx.es>
Subject: Re: Auto width and height on table cells
Date: Thu, 30 Jun 2022 18:44:07 +0200 [thread overview]
Message-ID: <6206d766-8a85-486c-87e5-1bb6214af043@gmx.es> (raw)
In-Reply-To: <Yr3LEOdSaJ7Y3uol@zombi.ugr.es>
On 6/30/22 18:10, Angel M Alganza via ntg-context wrote:
> [...]
> No, you aren't, and it almost does it, except when the fixed width
> column is other than the first one, I'm afraid.
Hi Ángel,
there might be a way to get it, as long as you don’t define height
directly, such as in:
\starttext
\showframe
\startbuffer
row\currentxtablerow--col\currentxtablecolumn
\stopbuffer
\startbuffer[table]
\startxtable[option={stretch, height}, align={lohi, middle}]
\startxrow
\dorecurse{5}
{\startxcell[width=.115\textwidth]\inlinebuffer\stopxcell}
\startxcell\inlinebuffer\stopxcell
\stopxrow
\startxrow
\dorecurse{5}
{\startxcell\inlinebuffer\stopxcell}
\startxcell[offset=1em]\input zapf\stopxcell
\stopxrow
\dorecurse{5}
{\startxrow
\dorecurse{6}
{\startxcell\inlinebuffer\stopxcell}
\stopxrow}
\stopxtable
\stopbuffer
\getbuffer[table]
\page
\setuppapersize[A3, landscape]
\getbuffer[table]
\stoptext
Again, just in case it helps,
Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2022-06-30 16:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-30 5:43 Angel M Alganza via ntg-context
2022-06-30 6:16 ` Hans Hagen via ntg-context
2022-06-30 6:40 ` Angel M Alganza via ntg-context
2022-06-30 7:02 ` Henning Hraban Ramm via ntg-context
2022-06-30 7:22 ` Angel M Alganza via ntg-context
2022-06-30 7:36 ` Hans Hagen via ntg-context
2022-06-30 7:46 ` Angel M Alganza via ntg-context
2022-06-30 8:26 ` Hans Hagen via ntg-context
2022-06-30 8:37 ` Angel M Alganza via ntg-context
2022-06-30 14:15 ` Pablo Rodriguez via ntg-context
2022-06-30 16:10 ` Angel M Alganza via ntg-context
2022-06-30 16:44 ` Pablo Rodriguez via ntg-context [this message]
2022-06-30 10:12 ` Henning Hraban Ramm via ntg-context
2022-06-30 10:25 ` Angel M Alganza via ntg-context
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=6206d766-8a85-486c-87e5-1bb6214af043@gmx.es \
--to=ntg-context@ntg.nl \
--cc=oinos@gmx.es \
/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).