From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113543 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean-Philippe Rey via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Have a cell span multiple columns with tabulate Date: Sat, 27 Nov 2021 17:35:48 +0100 Message-ID: <45676EA8-5A39-42D5-B951-32403D989991@centralesupelec.fr> References: <958cafa77cb7451fa260a3198c6e83c4@unibe.ch> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.20.0.1.32\)) Content-Type: multipart/mixed; boundary="===============5263131652900010313==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17090"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Jean-Philippe Rey To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 27 17:36:30 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mr0gg-00048K-4p for gctc-ntg-context-518@m.gmane-mx.org; Sat, 27 Nov 2021 17:36:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 09A8528724B; Sat, 27 Nov 2021 17:35:55 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pGTF2uFa7R8Y; Sat, 27 Nov 2021 17:35:53 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4467728959B; Sat, 27 Nov 2021 17:35:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2C04628956A for ; Sat, 27 Nov 2021 17:35:51 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LW4k20zWwAXb for ; Sat, 27 Nov 2021 17:35:49 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=138.195.33.47; helo=smtp3.ecp.fr; envelope-from=jean-philippe.rey@centralesupelec.fr; receiver= Original-Received: from smtp3.ecp.fr (smtp3.ecp.fr [138.195.33.47]) by zapf.ntg.nl (Postfix) with ESMTP id B25BB28724B for ; Sat, 27 Nov 2021 17:35:49 +0100 (CET) Original-Received: from smtpclient.apple (unknown [78.192.242.47]) (Authenticated sender: jprey) by smtp3.ecp.fr (Postfix) with ESMTPSA id 382096075D; Sat, 27 Nov 2021 17:35:49 +0100 (CET) In-Reply-To: <958cafa77cb7451fa260a3198c6e83c4@unibe.ch> X-Mailer: Apple Mail (2.3693.20.0.1.32) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:113543 Archived-At: --===============5263131652900010313== Content-Type: multipart/alternative; boundary="Apple-Mail=_B9975030-9D23-44F8-BAC4-6A6D6D48C26A" --Apple-Mail=_B9975030-9D23-44F8-BAC4-6A6D6D48C26A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Dear Denis, > Le 27 nov. 2021 =C3=A0 13:25, Denis Maier via ntg-context = a =C3=A9crit : >=20 > Hi, > =20 > I=E2=80=99m using tabulate for parallel texts (source and translation = next to each other). The top of each table should consist of only one = cell covering both columns with centered content. Is that possible? > =20 > A HTML equivalent will look roughly like this: > =20 > > > > > > > > >
Manuscript XY
Some text in Greek or Hebrew or whateverThis is the translation
> =20 > With ConteXt I=E2=80=99d like to do something like this > =20 > \starttabulate[|p(1.2cm)|p(1.2cm)|] > \NC Manuscript XY \NR > \NC Some text in Greek or Hebrew or whatever > \NC This is the translation \NC \NR = =20 > \stoptabulate > =20 > This compiles (interestingly?), but the cells at the top aren=E2=80=99t = merged. > =20 > Any ideas ? > =20 > I know that natural tables offer more in this regard, but those seem = not to be so well suited for parallel texts. I switched to natural tables a long time ago and that's how I would do = it: \starttext \bTABLE[width=3D8cm, frame=3Doff] \setupTABLE[c][1][roffset=3D0.5em] \setupTABLE[c][2][loffset=3D0.5em] \bTR \bTD[nc=3D2, align=3Dcenter, bottomframe=3Don] Manuscript XY = \eTD \eTR\bTR \bTD Some text in Greek or Hebrew or whatever. =09 The text can comprise multiple paragraphs. Or even lists and other goodies : \startitemize[intro, packed] \item first item \item second item \stopitemize \eTD\bTD This is the translation \eTD \eTR \eTABLE \stoptext =20 I haven't seen drawbacks with parallel texts (yet) and I found natural = tables very flexible. Hope it helps, --=20 Jean-Philippe Rey jean-philippe.rey@centralesupelec.fr = 91192 Gif-sur-Yvette Cedex - France Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51 --Apple-Mail=_B9975030-9D23-44F8-BAC4-6A6D6D48C26A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Dear = Denis,

Le 27 nov. 2021 =C3=A0 13:25, Denis Maier via = ntg-context <ntg-context@ntg.nl> a =C3=A9crit :

Hi,
 
I=E2=80=99m using tabulate for parallel texts = (source and translation next to each other). The top of each table = should consist of only one cell covering both columns with centered = content. Is that possible?
 
A HTML equivalent will look roughly like = this:
 
<table>
  <tr>
   = <th colspan=3D"2">Manuscript XY </th>
  </tr>
  <tr>
    = <td>Some text in Greek or Hebrew or whatever</td>
    = <td>This is the translation</td>
  </tr>
</table>
 
With = ConteXt I=E2=80=99d like to do something like this
 
\starttabulate[|p(1.2cm)|p(1.2cm)|]
  \NC Manuscript XY \NR
  \NC  Some text in Greek or Hebrew or whatever
  \NC  This is the translation \NC = \NR            = ;            &= nbsp;           &nb= sp;        
\stoptabulate
 
This compiles (interestingly?), but the cells = at the top aren=E2=80=99t merged.
 
Any ideas ?
 
I know that natural tables offer more in this = regard, but those seem not to be so well suited for parallel = texts.

I = switched to natural tables a long time ago and that's how I would do = it:

\starttext
\bTABLE[width=3D8cm, = frame=3Doff]
\setupTABLE[c][1][roffset=3D0.5em]
\setupTABLE[c][2][loffset=3D0.5em]
\bTR
\bTD[nc=3D2, align=3Dcenter, = bottomframe=3Don] Manuscript XY \eTD
\eTR\bTR
\bTD
Some text in Greek or Hebrew or = whatever.


The text can comprise multiple = paragraphs.
= Or even lists and other goodies :
\startitemize[intro, = packed]
= \item first item
\item second item
= \stopitemize
\eTD\bTD
This is the translation
\eTD
\eTR
\eTABLE
\stoptext
 
I haven't seen drawbacks = with parallel texts (yet) and I found natural tables very = flexible.

Hope it = helps,

-- 
Jean-Philippe Rey
91192 Gif-sur-Yvette Cedex - = France
Empreinte PGP : 807A = 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

= --Apple-Mail=_B9975030-9D23-44F8-BAC4-6A6D6D48C26A-- --===============5263131652900010313== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5263131652900010313==--