From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/97253 Path: news.gmane.org!.POSTED!not-for-mail From: Lutz Haseloff Newsgroups: gmane.comp.tex.context Subject: Re: Customize a table with Metafun Date: Tue, 14 Feb 2017 17:04:36 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6020031725905859106==" X-Trace: blaine.gmane.org 1487088423 14247 195.159.176.226 (14 Feb 2017 16:07:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 14 Feb 2017 16:07:03 +0000 (UTC) User-Agent: K-9 Mail for Android To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 14 17:06:58 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdfd2-0003BS-OV for gctc-ntg-context-518@m.gmane.org; Tue, 14 Feb 2017 17:06:56 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 835C912A025D; Tue, 14 Feb 2017 17:04:50 +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 9AOA88sqFMLg; Tue, 14 Feb 2017 17:04:48 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id CB79D12A0256; Tue, 14 Feb 2017 17:04:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2A4E312A0256 for ; Tue, 14 Feb 2017 17:04:48 +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 cGZ7BHEA5ETg for ; Tue, 14 Feb 2017 17:04:47 +0100 (CET) Original-Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [81.169.146.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 87FCB12A01BA for ; Tue, 14 Feb 2017 17:04:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1487088277; l=4201; s=domk; d=toppkieker.net; h=From:To:Subject:Content-Transfer-Encoding:Content-Type:MIME-Version: References:In-Reply-To:Date; bh=/ofnqrphEz77nU6V8hoX5udJk1WqZ4aDmgE1JdB8BNY=; b=v4YBxobBBvPy9Vacf957kdLcIeXlGzg4pzUeI/7QA8+U7lwOAnuhMkncXyvY2G4nCJ JMo5EgWSTni17y4uaHnl7pCvCEMl7IBM+nVXoYdos1j290R2ffn6PR9qt96Mbg1KeIXK d5pyLvEe3LLfJ4DTYYORE6Sx+kLSQlpr5lT3w= X-RZG-AUTH: :IHkQb0mIb/AUraw5Pw467N3q59xGbzPxbBOyYTEEx5ypwlL1nljiOOd7mqs9mg== X-RZG-CLASS-ID: mo00 Original-Received: from [192.168.0.12] ([185.48.210.89]) by smtp.strato.de (RZmta 39.12 AUTH) with ESMTPSA id 907ec5t1EG4a6o7 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Tue, 14 Feb 2017 17:04:36 +0100 (CET) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:97253 Archived-At: --===============6020031725905859106== Content-Type: multipart/alternative; boundary="----NNN8G4XQ99V54GLSIGDSK7LHJD9E1P" Content-Transfer-Encoding: 7bit ------NNN8G4XQ99V54GLSIGDSK7LHJD9E1P Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable linecap:=3Dbutt ; Am 14=2E Februar 2017 16:53:04 MEZ schrieb Fabrice Couvreur : >Hello, >In the code below, the red vertical line extends beyond the edges of >the >cell=2E >Thank you >Fabrice > >\startuniqueMPgraphic{Vertical} > > linecap:=3Dsquared ; > path p ; p :=3D unitsquare xyscaled (OverlayWidth,OverlayHeight) ; > drawoptions (withpen pencircle withcolor \MPcolor{red}) ; > draw =2E5[llcorner p, lrcorner p]--=2E5[ulcorner p, urcorner p] ; > setbounds currentpicture to p ; > >\stopuniqueMPgraphic > >\defineoverlay[Vertical][\uniqueMPgraphic{Vertical}] > >\startsetups[table:initialize] > >\setupTABLE[start] > [align=3D{middle,lohi},offset=3D0=2E5ex,width=3D1=2E5cm, > foregroundstyle=3D{\switchtobodyfont[10pt]}] >\setupTABLE[1][2][background=3DVertical] > >\stopsetups > >\starttext >\startlinecorrection[blank] > \startmidaligned > \bTABLE[setups=3Dtable:initialize] > \bTR > \bTD \math{\red 0 {\rm (A)}} \eTD > \bTD \math{+\infty} \eTD > \eTR > \bTR > \bTD \eTD > \bTD \math{+\infty} \eTD > \eTR > \eTABLE > \stopmidaligned >\stoplinecorrection >\stoptext --=20 Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesende= t=2E ------NNN8G4XQ99V54GLSIGDSK7LHJD9E1P Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable linecap:=3Dbutt ;

Am 14=2E Februar 2017 16:53:04 MEZ schrieb Fabrice Couvreur <fabrice1= =2Ecouvreur@gmail=2Ecom>:
Hello,
In the code below, the red vertical line extend= s beyond the edges of the cell=2E
Thank you
<= /span>
Fab= rice

\startuniqueMPgraphic{Vertical}

  linecap:= =3Dsquared ;
  path p ; p :=3D unitsquare xyscaled (OverlayWidth,= OverlayHeight) ;
  drawoptions (withpen pencircle withcolor \MPco= lor{red}) ;
  draw =2E5[llcorner p, lrcorner p]--=2E5[ulcorner p,= urcorner p] ;
  setbounds currentpicture to p ;

\stop= uniqueMPgraphic

\defineoverlay[Vertical][\uniqueMPgraphic{Vertic= al}]

\startsetups[table:initialize]

\setupTABLE[start= ]
           [align= =3D{middle,lohi},offset=3D0=2E5ex,width=3D1=2E5cm,
   &= nbsp;        foregroundstyle=3D{\switcht= obodyfont[10pt]}]
\setupTABLE[1][2][background=3DVertical]

= \stopsetups

\starttext
\startlinecorrection[blank]
&nb= sp; \startmidaligned
    \bTABLE[setups=3Dtable:initial= ize]
    \bTR
    \bTD \math{\red 0= {\rm (A)}} \eTD
    \bTD \math{+\infty}  &nb= sp;       \eTD
    \eTR    \bTR
    \bTD   &= nbsp;           &nbs= p;         \eTD
  &n= bsp; \bTD  \math{+\infty}       &nb= sp; \eTD
    \eTR
    \eTABLE
=   \stopmidaligned
\stoplinecorrection
\stoptext
=

--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesende= t=2E ------NNN8G4XQ99V54GLSIGDSK7LHJD9E1P-- --===============6020031725905859106== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============6020031725905859106==--