From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: ntg-context@ntg.nl
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: nested tables?
Date: Wed, 2 Jan 2008 18:21:53 +0100 [thread overview]
Message-ID: <20080102182153.25f42702.schuster.wolfgang@googlemail.com> (raw)
In-Reply-To: <200801021622.30681.yvon.henel@orange.fr>
On Wed, 2 Jan 2008 16:22:26 +0100
Yvon Henel <yvon.henel@orange.fr> wrote:
> Hello again,
>
> I would like to nest a table inside a table, something like this:
>
> \starttable[|c|c|]
> \NC {\bf ATout Choeur} \NC
> {\starttable[|c|]
> \NC Number 2008--1\FR
> \NC january 2008\LR
> \stoptable}\MR
> \NC {\tfa Something} \NC \LR
> \stoptable
>
> but 1/ I would like the top of the first cell of the first row to be aligned
> with the top of the second one (which contains the nested table);
> 2/ it seems that it does not work when the layout is set up
> with "grid=yes"
>
> If the answer to the second question is "Effectively, it can't work in such a
> layout", what could be a way of obtaining what I want?
>
> As always, any hint would be greatly appreciated
Do you really need nested tables? Try one of the following solution.
\starttext
\starttable[|c|cp(3cm)|]
\NC \bf ATout Choeur \NC Number 2008--1\crlf january 2008 \NC\AR
\NC \tfa Something \NC \NC\AR
\stoptable
\starttabulate[|c|cp(3cm)|]
\NC \bf ATout Choeur \NC Number 2008--1\crlf january 2008 \NC\NR
\NC \tfa Something \NC \NC\NR
\stoptabulate
\setupTABLE[column][align=middle,frame=off]
\setupTABLE[column][first][style=bold]
\bTABLE
\bTR
\bTD ATout Choeur \eTD
\bTD Number 2008--1\crlf january 2008 \eTD
\eTR
\bTR
\bTD Something \eTD
\bTD \eTD
\eTR
\eTABLE
\stoptext
Wolfgang
___________________________________________________________________________________
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://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2008-01-02 17:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-02 15:22 Yvon Henel
2008-01-02 17:21 ` Wolfgang Schuster [this message]
2008-01-02 18:55 ` Aditya Mahajan
2008-01-03 14:45 ` Yvon Henel
2008-01-03 15:02 ` Wolfgang Schuster
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=20080102182153.25f42702.schuster.wolfgang@googlemail.com \
--to=schuster.wolfgang@googlemail.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).