From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38426 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: nested tables? Date: Wed, 2 Jan 2008 18:21:53 +0100 Message-ID: <20080102182153.25f42702.schuster.wolfgang@googlemail.com> References: <200801021622.30681.yvon.henel@orange.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1199294606 633 80.91.229.12 (2 Jan 2008 17:23:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Jan 2008 17:23:26 +0000 (UTC) Cc: mailing list for ConTeXt users To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 02 18:23:45 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1JA7Jc-0007m1-4J for gctc-ntg-context-518@m.gmane.org; Wed, 02 Jan 2008 18:23:40 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E77931FBFE; Wed, 2 Jan 2008 18:23:13 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01932-01-4; Wed, 2 Jan 2008 18:22:35 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C3FE61FC07; Wed, 2 Jan 2008 18:22:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DAAE81FC14 for ; Wed, 2 Jan 2008 18:22:33 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31714-04-6 for ; Wed, 2 Jan 2008 18:21:59 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by ronja.ntg.nl (Postfix) with ESMTP id B63751FBFE for ; Wed, 2 Jan 2008 18:21:59 +0100 (CET) Original-Received: by fg-out-1718.google.com with SMTP id e12so3349074fga.8 for ; Wed, 02 Jan 2008 09:21:59 -0800 (PST) Original-Received: by 10.86.77.5 with SMTP id z5mr1724386fga.77.1199294519565; Wed, 02 Jan 2008 09:21:59 -0800 (PST) Original-Received: from rover ( [84.149.98.29]) by mx.google.com with ESMTPS id 12sm16399059fgg.6.2008.01.02.09.21.56 (version=SSLv3 cipher=OTHER); Wed, 02 Jan 2008 09:21:57 -0800 (PST) In-Reply-To: <200801021622.30681.yvon.henel@orange.fr> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.10.14; i686-pc-mingw32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:38426 Archived-At: On Wed, 2 Jan 2008 16:22:26 +0100 Yvon Henel 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 ___________________________________________________________________________________