From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113554 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 19:30:32 +0100 Message-ID: References: <958cafa77cb7451fa260a3198c6e83c4@unibe.ch> <45676EA8-5A39-42D5-B951-32403D989991@centralesupelec.fr> <1e9bfa56e0934f018059000fd9289689@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="===============8020235335520384504==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15188"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Jean-Philippe Rey , ntg-context@ntg.nl To: denis.maier@unibe.ch Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 27 19:31:13 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 1mr2Th-0003kH-Jr for gctc-ntg-context-518@m.gmane-mx.org; Sat, 27 Nov 2021 19:31:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 02F712896EB; Sat, 27 Nov 2021 19:30:39 +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 6VJP3HXi4Uo1; Sat, 27 Nov 2021 19:30:37 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3D846289597; Sat, 27 Nov 2021 19:30:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 390972894BB for ; Sat, 27 Nov 2021 19:30:35 +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 1d5Nmv9nLMQL for ; Sat, 27 Nov 2021 19:30:33 +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 67E9D28948F for ; Sat, 27 Nov 2021 19:30:33 +0100 (CET) Original-Received: from smtpclient.apple (unknown [78.192.242.47]) (Authenticated sender: jprey) by smtp3.ecp.fr (Postfix) with ESMTPSA id C3DFB6075D; Sat, 27 Nov 2021 19:30:32 +0100 (CET) In-Reply-To: <1e9bfa56e0934f018059000fd9289689@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:113554 Archived-At: --===============8020235335520384504== Content-Type: multipart/alternative; boundary="Apple-Mail=_2D72A1C8-DE9F-491D-844B-09A0E1320649" --Apple-Mail=_2D72A1C8-DE9F-491D-844B-09A0E1320649 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Denis, I have used natural tables that span multiple pages. However, if I am = right, each row must be contained on a single page. That may be an issue = depending on your use cases. Best, > Le 27 nov. 2021 =C3=A0 17:45, denis.maier@unibe.ch a =C3=A9crit : >=20 > Bonjour Jean-Philippe > =20 > Thank you for your response. That sounds very promising. I don=E2=80=99t= remember why I didn=E2=80=99t use natural tables when I=E2=80=99ve = started setting things up for this journal. I think I=E2=80=99d might = have had something to do with tables that break across pages. (At least, = this is whathttps://wiki.contextgarden.net/Tables_Overview = currently says: = extremetables are said to be better when page breaking is involved.) > Have you ever noticed problems in that area? > =20 > Best, > Denis > =20 > Von: Jean-Philippe Rey =20 > Gesendet: Samstag, 27. November 2021 17:36 > An: mailing list for ConTeXt users > Cc: Maier, Denis Christian (UB) > Betreff: Re: [NTG-context] Have a cell span multiple columns with = tabulate > =20 > Dear Denis, >=20 >=20 > 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. > =20 > I switched to natural tables a long time ago and that's how I would do = it: > =20 > \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. > =20 > 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. > =20 > Hope it helps, >=20 > --=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 --=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=_2D72A1C8-DE9F-491D-844B-09A0E1320649 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Denis,

I = have used natural tables that span multiple pages. However, if I am = right, each row must be contained on a single page. That may be an = issue depending on your use cases.

Best,

Le 27 = nov. 2021 =C3=A0 17:45, denis.maier@unibe.ch a =C3=A9crit :

Bonjour Jean-Philippe
 
Thank you for your response. That sounds very = promising. I don=E2=80=99t remember why I didn=E2=80=99t use natural = tables when I=E2=80=99ve started setting things up for this journal. I = think I=E2=80=99d might have had something to do with tables that break = across pages. (At least, this is whathttps://wiki.contextgarden.net/Tables_Overview currently says: = extremetables are said to be better when page breaking is involved.)
Have = you ever noticed problems in that area?
 
Best,
Denis
 
Von: Jean-Philippe Rey <jean-philippe.rey@centralesupelec.fr> 
Gesendet: Samstag, 27. November 2021 = 17:36
An: mailing list for ConTeXt = users <ntg-context@ntg.nl>
Cc: Maier, Denis Christian (UB) = <denis.maier@unibe.ch>
Betreff: Re: [NTG-context] Have a = cell span multiple columns with tabulate
 
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


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

= --Apple-Mail=_2D72A1C8-DE9F-491D-844B-09A0E1320649-- --===============8020235335520384504== 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== --===============8020235335520384504==--