From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/97259 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Customize a table with Metafun Date: Wed, 15 Feb 2017 16:27:27 +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="===============8302480902746157088==" X-Trace: blaine.gmane.org 1487172491 20060 195.159.176.226 (15 Feb 2017 15:28:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 15 Feb 2017 15:28:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 15 16:28:05 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 1ce1Ux-0004Wp-AH for gctc-ntg-context-518@m.gmane.org; Wed, 15 Feb 2017 16:28:03 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 851A712020BF; Wed, 15 Feb 2017 16:27:42 +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 ojIQUWbYgfqJ; Wed, 15 Feb 2017 16:27:41 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id C662712020C0; Wed, 15 Feb 2017 16:27:41 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2183212020BD for ; Wed, 15 Feb 2017 16:27:41 +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 zUVDamOl2Spr for ; Wed, 15 Feb 2017 16:27:39 +0100 (CET) Original-Received: from mail-io0-f170.google.com (mail-io0-f170.google.com [209.85.223.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 9601B12020BB for ; Wed, 15 Feb 2017 16:27:29 +0100 (CET) Original-Received: by mail-io0-f170.google.com with SMTP id l66so91479436ioi.1 for ; Wed, 15 Feb 2017 07:27:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=5rNUHJQmINlMRYMrYdi9lVe/pnCsJWg4rCqLqt59WvM=; b=u98Ob12bA7vKv4BvnD23za43Gprr4DigdQbSVtqY6ldU/5A33R/qyjznOzVIl+jksq 6rp5nyTqaNEdAM1C8b5RRWGeUUfFIQEVfeyfJm6EHl93/kYnAUh3xHimW3WgvZ9Po5qr djlHLiwQNyGTtMSOtAwMUo1Hgu3t90n+zHv82nEadZ5wiC5QTm9Cs/dL+qMIiL87HjND +91I4m2c9rRldPU2u8La34TK3BP1VBeSLEN+bOBuyh62wTHNSCfAM6Xm8Dgti0kBgTJw opwHJrYJg5GoTp7q63rtTFKBqPpLB1Ob/e1mQuUOD7G/I+OqqfQzy98Lh+npK0yeLrl3 h7Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=5rNUHJQmINlMRYMrYdi9lVe/pnCsJWg4rCqLqt59WvM=; b=dbAg20L9KP/ZwB1p9f5jZdihiA+smt5HvCwwnLBR2ng2YmfaQxtOqcEQDFxsHtW/CC ZBIAVM7wkQkJC3sSY9MKRKMdBM0KVNFwJlzQc0Q+IxI3W1hih8AVdRURiLNG06Y7H/C6 iXd2Esxgb6JjZKYmCaTduQqepFIqHg8vtK96pc2ymm93VGzqc2ccmU95+bX69rRLKIbo Wgfj+9UsskcKP8dSG/qoj1H4K4SKwHCPRlVorbOv4VtoTHYW8j3HB9axdYfhtDMJEQak EprIMvJmfcDH9NDJ5dwh2b3AUlj6DR+TSLKoBJx0NZxjl+OI7U80A1+ZSt9mSj/JJu8H SF2g== X-Gm-Message-State: AMke39mhohm3QTnU4sxgxBKvwpf+si6cfTfHOiM35L2rNr+g2E6TCJFn7R2oxAcL8dm27qACHoVliAEg32bUZA== X-Received: by 10.107.142.205 with SMTP id q196mr34782185iod.147.1487172447978; Wed, 15 Feb 2017 07:27:27 -0800 (PST) Original-Received: by 10.64.24.73 with HTTP; Wed, 15 Feb 2017 07:27:27 -0800 (PST) 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:97259 Archived-At: --===============8302480902746157088== Content-Type: multipart/alternative; boundary=94eb2c093c167b6f7e05489351fa --94eb2c093c167b6f7e05489351fa Content-Type: text/plain; charset=UTF-8 Hi Lutz, Thank you Fabrice 2017-02-14 17:04 GMT+01:00 Lutz Haseloff : > linecap:=butt ; > > > Am 14. Februar 2017 16:53:04 MEZ schrieb Fabrice Couvreur < > fabrice1.couvreur@gmail.com>: >> >> Hello, >> In the code below, the red vertical line extends beyond the edges of the >> cell. >> Thank you >> Fabrice >> >> \startuniqueMPgraphic{Vertical} >> >> linecap:=squared ; >> path p ; p := unitsquare xyscaled (OverlayWidth,OverlayHeight) ; >> drawoptions (withpen pencircle withcolor \MPcolor{red}) ; >> draw .5[llcorner p, lrcorner p]--.5[ulcorner p, urcorner p] ; >> setbounds currentpicture to p ; >> >> \stopuniqueMPgraphic >> >> \defineoverlay[Vertical][\uniqueMPgraphic{Vertical}] >> >> \startsetups[table:initialize] >> >> \setupTABLE[start] >> [align={middle,lohi},offset=0.5ex,width=1.5cm, >> foregroundstyle={\switchtobodyfont[10pt]}] >> \setupTABLE[1][2][background=Vertical] >> >> \stopsetups >> >> \starttext >> \startlinecorrection[blank] >> \startmidaligned >> \bTABLE[setups=table: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 >> > > -- > Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail > gesendet. > > ____________________________________________________________ > _______________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ > listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ____________________________________________________________ > _______________________ > --94eb2c093c167b6f7e05489351fa Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Lutz,
Thank you
Fabrice


2017-02-14 17:04 GMT+01:0= 0 Lutz Haseloff <lutzi@toppkieker.net>:
linecap:=3Dbutt ;


Am 14. Februar 2017 16:53:04 MEZ schrieb Fabrice Couv= reur <f= abrice1.couvreur@gmail.com>:
Hello,
In the= code below, the red vertical line extends beyond the edges of the cell.
Thank you
Fabrice

\startuniqueMPgraphic{Vertical}

=C2=A0 linecap:= =3Dsquared ;
=C2=A0 path p ; p :=3D unitsquare xyscaled (OverlayWidth,Ov= erlayHeight) ;
=C2=A0 drawoptions (withpen pencircle withcolor \MPcolor{= red}) ;
=C2=A0 draw .5[llcorner p, lrcorner p]--.5[ulcorner p, urcorner = p] ;
=C2=A0 setbounds currentpicture to p ;

\stopuniqueMPgraphic<= br>
\defineoverlay[Vertical][\uniqueMPgraphic{Vertical}]

\st= artsetups[table:initialize]

\setupTABLE[start]
=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [align=3D{middle,lohi},offset=3D= 0.5ex,width=3D1.5cm,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 foregroundstyle=3D{\switchtobodyfont[10pt]}]
= \setupTABLE[1][2][background=3DVertical]

\stopsetups

\st= arttext
\startlinecorrection[blank]
=C2=A0 \startmidaligned
=C2=A0= =C2=A0=C2=A0 \bTABLE[setups=3Dtable:initialize]
=C2=A0=C2=A0=C2=A0 = \bTR
=C2=A0=C2=A0=C2=A0 \bTD \math{\red 0 {\rm (A)}} \eTD
=C2=A0=C2= =A0=C2=A0 \bTD \math{+\infty}=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 \eTD
=C2=A0=C2=A0=C2=A0 \eTR
=C2=A0=C2=A0=C2=A0 \bTR
=C2= =A0=C2=A0=C2=A0 \bTD=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 \eTD
=C2=A0=C2=A0=C2=A0 \bTD=C2=A0 \math{+\infty}=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \eTD
=C2=A0=C2=A0=C2=A0 \eTR<= br>=C2=A0=C2=A0=C2=A0 \eTABLE
=C2=A0 \stopmidaligned
\stoplinecorrect= ion
\stoptext

--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet= .

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

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" rel=3D"noreferrer= " target=3D"_blank">http://www.ntg.nl/mailman/listinfo/ntg-context=
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_________________________________________________________________= __________________

--94eb2c093c167b6f7e05489351fa-- --===============8302480902746157088== 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 --===============8302480902746157088==--