From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108820 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: More table questions Date: Tue, 22 Sep 2020 16:02:17 -0400 (EDT) Message-ID: References: <87pn6dwqp5.fsf@a16n.net> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-874123537-1600804939=:1537316" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39530"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Alpine 2.23 (LNX 453 2020-06-18) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 22 22:02:57 2020 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 1kKoV7-000ABX-0T for gctc-ntg-context-518@m.gmane-mx.org; Tue, 22 Sep 2020 22:02:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C47161A8F15; Tue, 22 Sep 2020 22:02:23 +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 ZX2e5_EBX1yk; Tue, 22 Sep 2020 22:02:22 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DB7D11A8F26; Tue, 22 Sep 2020 22:02:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 494781A8F0C for ; Tue, 22 Sep 2020 22:02:22 +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 29cpS-br76eh for ; Tue, 22 Sep 2020 22:02:21 +0200 (CEST) Received-SPF: Softfail (mailfrom) identity=mailfrom; client-ip=132.206.73.2; helo=orford.cim.mcgill.ca; envelope-from=adityam@umich.edu; receiver= Original-Received: from orford.cim.mcgill.ca (smtp.cim.mcgill.ca [132.206.73.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 934331A8EF6 for ; Tue, 22 Sep 2020 22:02:20 +0200 (CEST) Original-Received: from adi-thinkpad.local (198-84-255-218.cpe.teksavvy.com [198.84.255.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: adityam) by orford.cim.mcgill.ca (Postfix) with ESMTPSA id 94E71FCB10 for ; Tue, 22 Sep 2020 16:02:18 -0400 (EDT) In-Reply-To: <87pn6dwqp5.fsf@a16n.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:108820 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-874123537-1600804939=:1537316 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 22 Sep 2020, Peter M=C3=BCnster wrote: > On Tue, Sep 22 2020, Aditya Mahajan wrote: >=20 > > The same effect is rather easy to achieve when using natural tables as > > well. >=20 > But it fails, when there is only one data-row... :( Then don't create tables with only one data row :-) A better solution is to create a dedicate framehandler which draws the bott= om frame at half the thickness: \startuseMPgraphic{booktabs_bottom} draw bottomboundary OverlayBox withpen pencircle scaled (OverlayLineWidt= h/2) withcolor OverlayColor; setbounds currentpicture to OverlayBox; \stopuseMPgraphic \defineoverlay[booktabs_bottom] [\uniqueMPgraphic{booktabs_bottom}] \installbottomframerenderer{booktabs}{\uniqueMPgraphic{booktabs_bottom}} \startsetups booktabs \setupTABLE[each][each][frame=3Doff, rulethickness=3D1.2bp] \setupTABLE[row][first][topframe=3Don, bottomframe=3Dbooktabs] \setupTABLE[row][last] [bottomframe=3Don] \setupTABLE[row][first][style=3Dbold] \stopsetups \starttext \startTABLE[setups=3Dbooktabs] \NC Heading 1 \NC Heading 2 \NC Heading 3 \NC \NR \NC Value 1 \NC Value 2 \NC Value 3 \NC \NR \NC Value 1 \NC Value 2 \NC Value 3 \NC \NR \NC Value 1 \NC Value 2 \NC Value 3 \NC \NR \stopTABLE \blank[2*line] \startTABLE[setups=3Dbooktabs] \NC Heading 1 \NC Heading 2 \NC Heading 3 \NC \NR \NC Value 1 \NC Value 2 \NC Value 3 \NC \NR \stopTABLE \stoptext Aditya --8323329-874123537-1600804939=:1537316 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== --8323329-874123537-1600804939=:1537316--