From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/117201 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: fv leung via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: rotated headers in natural tables Date: Thu, 16 Mar 2023 06:27:00 +0800 Message-ID: References: <6d711cbf-fd4b-c0b1-d36c-4599c12db912@fiee.net> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1366039220075442081==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24319"; mail-complaints-to="usenet@ciao.gmane.io" Cc: fv leung To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 15 23:29:40 2023 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 1pcZco-00063q-VY for gctc-ntg-context-518@m.gmane-mx.org; Wed, 15 Mar 2023 23:29:39 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 407FE380AC7; Wed, 15 Mar 2023 23:27:18 +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 HYuoePq8UEXJ; Wed, 15 Mar 2023 23:27:16 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 87AB8380AC8; Wed, 15 Mar 2023 23:27:16 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 137E3380AD3 for ; Wed, 15 Mar 2023 23:27:15 +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 LwKL6f1UJF6u for ; Wed, 15 Mar 2023 23:27:14 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.215.176; helo=mail-pg1-f176.google.com; envelope-from=fvleung@gmail.com; receiver= Original-Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) (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 A3B8C380A8B for ; Wed, 15 Mar 2023 23:27:13 +0100 (CET) Original-Received: by mail-pg1-f176.google.com with SMTP id z18so1238694pgj.13 for ; Wed, 15 Mar 2023 15:27:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678919231; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=efe7mFGZ+ORmFaWXN5ii1Av0KY/dloNbT5pCAk+axV4=; b=a7ylp01ht4W+lGrJpyFBr45qQ18XcrtIqvEVIRts8PLCxGtsCwGf6fbc4ol02OVqqz 9TzWw12uegnHf4WUMcCZ1+WpI7wtfEKKDpor4IwLF+03bOA6gE+LtbFuP3hlb2UjyuoB vVXqlHnDLLZJ/M0wYe7mBDi8oE3kIpJbhND/Eji2JJwuXnVYogP4G68kgtMOEyDXwcaB gROXgUIfYtb0LLzzQEqsBLsjUjquGsdUr+yrFRmLNiNSu2efxgnP2+bx4AOBuhLv6oH8 RZP4aNBvZ7aekMJl3KyIy/xaxKFDcK/x5cJyGCv545EuL/aVixzdjI3oUK8HTXAMvLgy 4v1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678919231; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=efe7mFGZ+ORmFaWXN5ii1Av0KY/dloNbT5pCAk+axV4=; b=38OqJnQKtG+KsFFLa1b7xlsmfeugUif4Y24hAkOgQYBpPkSvh3FrNgr9tjvfn2vby5 wzDnXi8ZrPkmbbcGNFB+LxKbU1OOe0aXdOJpqoH2tvySy/oTYuHxJvdGRh3mXdo0CHPA blOX1tLIAR7CcI3MO8LUJLyIr4kpXAQm47FNUObQFaHKltyUXF82NbIn/zOK86uZDJmZ CK9grRmLUnAuz9PisXfp+eKj5pfUmW++W5e7uIRbOsIxG4HXdciVbrOBRj6mrCCCWuWF zsPoatCWA7IkgJ3ncgMynjh59t82WHdvvgDiItll7r/g+ZS3zFdF/VLG1ylVySccHHvE NEaw== X-Gm-Message-State: AO0yUKVrPjkUwFoBqg0UgorTWRgpnATQR2Mlf54DXVKtGnuudXkjQeWe qnLJXtYcgsORata6bWaYUbD3vbnExvoSovIks8wuqB6+8o0= X-Google-Smtp-Source: AK7set/0OAuxBuNFsryaVycYSciQgGvFCTBvJ8iC9R8gT7g5uncHTm3Nml7WcPfhZX9fdczd45aw+KZM2utYXewT/ZE= X-Received: by 2002:a05:6a00:1904:b0:623:129f:6269 with SMTP id y4-20020a056a00190400b00623129f6269mr584065pfi.1.1678919231142; Wed, 15 Mar 2023 15:27:11 -0700 (PDT) In-Reply-To: <6d711cbf-fd4b-c0b1-d36c-4599c12db912@fiee.net> 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:117201 Archived-At: --===============1366039220075442081== Content-Type: multipart/alternative; boundary="00000000000060fee605f6f7d80e" --00000000000060fee605f6f7d80e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable How about using \vfill ? \define[1]{\RtH}{\vfill\rotate{#1}} Henning Hraban Ramm via ntg-context =E6=96=BC 2023=E5= =B9=B43=E6=9C=8816=E6=97=A5 =E9=80=B1=E5=9B=9B =E4=B8=8A=E5=8D=882:16=E5=AF=AB=E9=81=93=EF=BC=9A > Hi! > > In my table, I want the header texts to be 90=CB=9A rotated and aligned t= o > the bottom of their cell. I couldn=E2=80=99t find an option to do that. > Tried \dontleavehmode or \hfill in my \RtH macro to no avail. > Is it possible? > > > \define[1]{\RtH}{\rotate{#1}} > > \starttext > > \setupTABLE[offset=3D3pt] > \setupTABLE[header][background=3Dcolor,backgroundcolor=3Dyellow,align=3Db= ottom] > \bTABLE > \bTABLEhead > \bTR \bTH\RtH{animal}\eTH \bTH\RtH{size}\eTH \bTH\RtH{weight}\eTH > \bTH\RtH{average speed}\eTH \eTR > \eTABLEhead > \bTABLEbody > \bTR \bTD sparrow \eTD \bTD small \eTD \bTD light \eTD \bTD high \eTD \eT= R > \bTR \bTD dog \eTD \bTD medium \eTD \bTD medium \eTD \bTD medium \eTD \eT= R > \bTR \bTD snail \eTD \bTD small \eTD \bTD light \eTD \bTD slow \eTD \eTR > \bTR \bTD elephant \eTD \bTD big \eTD \bTD heavy \eTD \bTD medium \eTD \e= TR > \eTABLEbody > \eTABLE > > \stoptext > > Hraban > > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > _________________________________________________________________________= __________ > --00000000000060fee605f6f7d80e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
How about using \vfill ?

\define[1]{\Rt= H}{\vfill\rotate{#1}}

Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl> =E6=96=BC 2023= =E5=B9=B43=E6=9C=8816=E6=97=A5 =E9=80=B1=E5=9B=9B =E4=B8=8A=E5=8D=882:16=E5= =AF=AB=E9=81=93=EF=BC=9A
Hi!

In my table, I want the header texts to be 90=CB=9A rotated and aligned to =
the bottom of their cell. I couldn=E2=80=99t find an option to do that.
Tried \dontleavehmode or \hfill in my \RtH macro to no avail.
Is it possible?


\define[1]{\RtH}{\rotate{#1}}

\starttext

\setupTABLE[offset=3D3pt]
\setupTABLE[header][background=3Dcolor,backgroundcolor=3Dyellow,align=3Dbot= tom]
\bTABLE
\bTABLEhead
\bTR \bTH\RtH{animal}\eTH \bTH\RtH{size}\eTH \bTH\RtH{weight}\eTH
\bTH\RtH{average speed}\eTH \eTR
\eTABLEhead
\bTABLEbody
\bTR \bTD sparrow \eTD \bTD small \eTD \bTD light \eTD \bTD high \eTD \eTR<= br> \bTR \bTD dog \eTD \bTD medium \eTD \bTD medium \eTD \bTD medium \eTD \eTR<= br> \bTR \bTD snail \eTD \bTD small \eTD \bTD light \eTD \bTD slow \eTD \eTR \bTR \bTD elephant \eTD \bTD big \eTD \bTD heavy \eTD \bTD medium \eTD \eTR=
\eTABLEbody
\eTABLE

\stoptext

Hraban
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / https://www.ntg.nl/mailman/listinfo/= ntg-context
webpage=C2=A0 : https://www.pragma-ade.nl / http://context.aanhet.net
archive=C2=A0 :
https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: https://contextgarden.net
___________________________________________________________________________= ________
--00000000000060fee605f6f7d80e-- --===============1366039220075442081== 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== --===============1366039220075442081==--