From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/116354 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joel via ntg-context Newsgroups: gmane.comp.tex.context Subject: How to make a row of text have vertical centering in tabulate environment? Date: Tue, 25 Oct 2022 00:35:31 +0000 (UTC) Message-ID: <2013262624.1645469.1666658131511@mail.yahoo.com> References: <2013262624.1645469.1666658131511.ref@mail.yahoo.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2721502431746032860==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31566"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joel To: Mailing List for ConTeXt Users Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 25 02:37:00 2022 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 1on7wB-00081N-OK for gctc-ntg-context-518@m.gmane-mx.org; Tue, 25 Oct 2022 02:36:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 91C0B2A47CC; Tue, 25 Oct 2022 02:35:41 +0200 (CEST) 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 8z-m1TtZlYb2; Tue, 25 Oct 2022 02:35:39 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 35E522A47CE; Tue, 25 Oct 2022 02:35:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 778902A47CC for ; Tue, 25 Oct 2022 02:35:38 +0200 (CEST) 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 nPlExvb7qdF6 for ; Tue, 25 Oct 2022 02:35:37 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=74.6.132.124; helo=sonic314-14.consmr.mail.bf2.yahoo.com; envelope-from=uaru99@yahoo.com; receiver= Original-Received: from sonic314-14.consmr.mail.bf2.yahoo.com (sonic314-14.consmr.mail.bf2.yahoo.com [74.6.132.124]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id B96A42A47CB for ; Tue, 25 Oct 2022 02:35:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1666658134; bh=I77VZ94DIBJGYgvdGQscYb9/tNSsA9xTXnfabsEO/qk=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=lI+OjKR8RvH1g/nRbO8XOdIXrhY+FDo08WKkzIS/Eph2EEPWrtykW/0qJmvPeC3KLUZI+Nic4awsnlmYZkKyjm26sbXhLhQP6gmWWz1rK9uZOVjH8WVbjFnYbXK92EUXyCB7apX4CZ3M7BN3S64l1nhvTOUwIb1B2CMa1KNwYbKFUinpOiR3Wzo79rsaxaBs6ibxjdO3w9If0jn5iDTGpH9XiB2SbVyysnxuqiugzxhLBzlvCFFb9EF/80Y8UMEGMRc1x0dTuMFBGnX4xzJBeeO1y58GXhP8wCuWAXh1dsYdZLGRCUoTZvOSafG4vcPBvdsgjW84Y5gHOEDp69S39Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1666658134; bh=A7r84upJIQ/SLBi97Sxu00D8LCAbTcrGmzeyDyzMDFB=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xryMMgLVh9.B55uBGi9JoSRXXhGMj0FFXCzYd4F4vHdaei5UXtO6euyc4jQirhqvrHFIN lbRS94vDrD6zUfsJGqaJfBbD6.EcyaaXd8JL5T2YbUWEgjZGscCiRJDqZ9i4.RNfM87QwPIsfGYM Dp9FV0V5AYQs33YnuMcO45.ZEhy5NWX_7HIpF4rMr8 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.bf2.yahoo.com with HTTP; Tue, 25 Oct 2022 00:35:34 +0000 X-Mailer: WebService/1.1.20754 YMailNorrin 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:116354 Archived-At: --===============2721502431746032860== Content-Type: multipart/alternative; boundary="----=_Part_1645468_1684996340.1666658131510" ------=_Part_1645468_1684996340.1666658131510 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I have a simple tabulate environment like this: \starttext =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 \starttabulate[|p(.45\textwidth)|cp(.= 1\textwidth)|p(.45\textwidth)|]=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0= =C2=A0 =C2=A0\NR =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2= =A0\HL =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2= =A0\NC Cause=C2=A0=C2=A0 =C2=A0\NC \NC Effect=C2=A0=C2=A0 =C2=A0\NC\NR =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2= =A0\HL =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2= =A0\NC=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\NC \NC=C2= =A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\NC\NR =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2= =A0 \NC=C2=A0=C2=A0 text a =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 \NC text b= \NC=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 \input knuth =C2=A0=C2=A0=C2=A0 \NC\NR = %<-- vertically center this row =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2= =A0\HL =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\NR =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\stoptabulate \stoptext I'd like to vertically center the content in the one marked row. By default= , they seem to place each cell aligned to the top, but how can I adjust the= m vertically so the text is vertically centered just in specific rows? --Joel ------=_Part_1645468_1684996340.1666658131510 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I have a simple tabulate environment like= this:

\starttext

&nbs= p;       \starttabulate[|p(.45\textwidth)|cp(.1\te= xtwidth)|p(.45\textwidth)|]
        &nbs= p;   \NR
           &n= bsp;    \HL
         &= nbsp;      \NC Cause    \NC \NC Effect&n= bsp;   \NC\NR
         &nbs= p;      \HL
        &n= bsp;       \NC       &nbs= p;    \NC \NC         &nb= sp;  \NC\NR
          =       \NC   text a     =     \NC text b \NC       \input knu= th     \NC\NR %<-- vertically center this row
<= /div>               =  \HL
            \NR
        \stoptabulate


\stoptext

I'd like to vertically center the content in the one marke= d row. By default, they seem to place each cell aligned to the top, but how= can I adjust them vertically so the text is vertically centered just in sp= ecific rows?

--Joel
------=_Part_1645468_1684996340.1666658131510-- --===============2721502431746032860== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2721502431746032860==--