From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/116088 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice Couvreur via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: About macro numberstriped () Date: Wed, 28 Sep 2022 15:11:41 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2734922155675290889==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19507"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Fabrice Couvreur To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 28 15:13:24 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 1odWsO-0004ua-Ai for gctc-ntg-context-518@m.gmane-mx.org; Wed, 28 Sep 2022 15:13:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 59FFD360E7B; Wed, 28 Sep 2022 15:13:01 +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 Fntgg_nDkGSf; Wed, 28 Sep 2022 15:13:00 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0C246360E7C; Wed, 28 Sep 2022 15:13:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 050C4360E7B for ; Wed, 28 Sep 2022 15:12:59 +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 N8ICvE230clB for ; Wed, 28 Sep 2022 15:12:57 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.216.47; helo=mail-pj1-f47.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Original-Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) (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 97ADE360E69 for ; Wed, 28 Sep 2022 15:12:57 +0200 (CEST) Original-Received: by mail-pj1-f47.google.com with SMTP id u59-20020a17090a51c100b00205d3c44162so2193211pjh.2 for ; Wed, 28 Sep 2022 06:12:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date; bh=xaJ6CzqSkLgO8N96yvZKtq5F9z1oZbq1bq/aALhg5sE=; b=BO3xbdXESzs4IIQJjfg5pHbywDwzpLO22c0rS0b0+ZNuAWH0NdR/eXjiuPgWwUNPBD o+ZG6WbtWrEOtsXxqUbMSZGuIuVKvnc2A4LK8b08B3UOiE1y9VNl558oc+Gsza/AlgTq NIQYAZvksTZuqVBouwwwdVgJ9tJq7gSVDiMqI0HEz1CTSm752zozeBZZvCMnSM5UboTW roNU4CfVj5IFDrnLU1SrrtUcIp9AOzjJ2zDO1F+Ib7B5iXk9sDMqZTo6Kuk0HDw8UC7R dnENpCPEEvcaVqNMiMVorMJiC6rWS3alCPxvKuHDMRorZkvn0bNZtYI8VyR8jd8JE94L dWAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date; bh=xaJ6CzqSkLgO8N96yvZKtq5F9z1oZbq1bq/aALhg5sE=; b=SbvcbRS1p5AFPPRV0roNxR1DLkpY0jKlkxANZY3u1v1n9U+uakcw9pGPq+B05E2fA4 9BmU94uniGmJoI0ag7hzQ3hgwk/C+Ckx8w5YVV/1d46CkJ8TcGofVcyK1AsRVCz0FnHE gUz6prrMQOPNtbQQlQvOWtNqZxDGxCHYH5w8LttgQr3FiAOoWUpwXxQiS9RCaTaDz7bX 24uA55adlM92BU8tDCdxzVmRxR0EsMfjCycby0DTBmXbTve4hZbLYK9U8cvo6j8Ea0f2 4NuG/leiy1177uedK1ULo5aHVQZqp476UkvkVHMJwuQFnpD0jZx+VZd5jkOTq886xMp4 omGA== X-Gm-Message-State: ACrzQf0ZAv8z9pTfDHYGu4O3BYH0X0KK1eaygY/7THtc5r7EmJBDT4fr 959SDaJgyjbqwwwdSurzULUooPsuMDs+X8IWc1Zz+qnphdo= X-Google-Smtp-Source: AMsMyM77uk2o00yP0CDmYGbBYUVyrEHvNC78RBvwpP21kp8+MK/csu9uoA5CB0+g5hm2XmFnHbH2GIjKaZoQamx4RHY= X-Received: by 2002:a17:90b:1b46:b0:203:a2c7:2327 with SMTP id nv6-20020a17090b1b4600b00203a2c72327mr10551005pjb.91.1664370774545; Wed, 28 Sep 2022 06:12:54 -0700 (PDT) In-Reply-To: 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:116088 Archived-At: --===============2734922155675290889== Content-Type: multipart/alternative; boundary="000000000000ca981205e9bc8493" --000000000000ca981205e9bc8493 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Hans, Thank you for this solution which is an approach that I did not know. Fabrice PS : What is the exact meaning of the word "blobs" because my English is average ? Le mar. 27 sept. 2022 =C3=A0 22:04, Hans Hagen via ntg-context < ntg-context@ntg.nl> a =C3=A9crit : > On 9/27/2022 7:49 PM, Fabrice Couvreur via ntg-context wrote: > > Hello, > > I notice a strange behavior of the macro numberstriped ( ). > > Thanks. > > Fabrice > > > > \starttext > > \switchtobodyfont[9pt] > > \startMPcode > > > > path p, q, r, b ; > > p :=3D unitsquare xyscaled (4cm,4cm) ; > > z[0] =3D (2cm,0cm) ; > > z[1] =3D (2cm,4cm) ; > > z[2] =3D (0cm,2cm) ; > > q :=3D llcorner p--z[0]--z[1]--z[2]--cycle ; > > r :=3D unitsquare xyscaled (1cm,1cm) shifted(0,3cm) ; > > b :=3D unitsquare xyscaled (3cm,3cm) shifted(1cm,0) ; > > draw p ; > > draw r withcolor red; > > draw r numberstriped (.25,20,5) withcolor magenta ; > > draw b numberstriped (.25,20,5) withcolor magenta ; > > label.llft("D", p) ; > > label.lrt("C", p) ; > > label.ulft("A", p) ; > > label.urt("B", p) ; > > label.urt("P", lrcorner r) ; > > label.lft("Q", llcorner r) ; > > label.top("M", urcorner r) ; > > > > \stopMPcode > > \stoptext > you need to find a volunteer to make the pattern have the two corner blo= bs > > \starttext > > \startMPcode > path p, q, r, b ; > path p ; p :=3D unitsquare xyscaled (4cm,4cm) ; > draw p ; > draw p > withpattern image ( > draw (llcorner unitsquare -- urcorner unitsquare) scaled 5mm= ; > % how to get the corner dots > ) > withpatternscale 1/16 > withpen pencircle scaled 1mm > ; > \stopMPcode > > \stoptext > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --000000000000ca981205e9bc8493 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Hans,
Thank you for this solution which is an approach th= at I did not know.
Fabrice

PS :=C2=A0What is the exact meanin= g of the word "blobs" because my English is average ?
=
Le=C2= =A0mar. 27 sept. 2022 =C3=A0=C2=A022:04, Hans Hagen via ntg-context <ntg-context@ntg.nl> a =C3=A9crit= =C2=A0:
On 9/27/= 2022 7:49 PM, Fabrice Couvreur via ntg-context wrote:
> Hello,
> I notice a strange behavior of the macro numberstriped ( ).
> Thanks.
> Fabrice
>
> \starttext
>=C2=A0 =C2=A0\switchtobodyfont[9pt]
>=C2=A0 =C2=A0\startMPcode
>
>=C2=A0 =C2=A0 path p, q, r, b ;
>=C2=A0 =C2=A0 p =C2=A0:=3D unitsquare xyscaled (4cm,4cm) ;
>=C2=A0 =C2=A0 z[0] =3D (2cm,0cm) ;
>=C2=A0 =C2=A0 z[1] =3D (2cm,4cm) ;
>=C2=A0 =C2=A0 z[2] =3D (0cm,2cm) ;
>=C2=A0 =C2=A0 q :=3D llcorner p--z[0]--z[1]--z[2]--cycle ;
>=C2=A0 =C2=A0 r :=3D unitsquare xyscaled (1cm,1cm) shifted(0,3cm) ;
>=C2=A0 =C2=A0 b :=3D unitsquare xyscaled (3cm,3cm) shifted(1cm,0) ;
>=C2=A0 =C2=A0 draw p ;
>=C2=A0 =C2=A0 draw r withcolor red;
>=C2=A0 =C2=A0 draw r numberstriped (.25,20,5) withcolor magenta ;
>=C2=A0 =C2=A0 draw b numberstriped (.25,20,5) withcolor magenta ;
>=C2=A0 =C2=A0 label.llft("D", p) ;
>=C2=A0 =C2=A0 label.lrt("C", p) ;
>=C2=A0 =C2=A0 label.ulft("A", p) ;
>=C2=A0 =C2=A0 label.urt("B", p) ;
>=C2=A0 =C2=A0 label.urt("P", lrcorner r) ;
>=C2=A0 =C2=A0 label.lft("Q", llcorner r) ;
>=C2=A0 =C2=A0 label.top("M", urcorner r) ;
>
>=C2=A0 =C2=A0 \stopMPcode
> \stoptext
you need to find a volunteer to make the pattern have the two corner=C2=A0 = blobs

\starttext

\startMPcode
=C2=A0 =C2=A0 =C2=A0path p, q, r, b ;
=C2=A0 =C2=A0 =C2=A0path p ; p=C2=A0 :=3D unitsquare xyscaled (4cm,4cm) ; =C2=A0 =C2=A0 =C2=A0draw p ;
=C2=A0 =C2=A0 =C2=A0draw p
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0withpattern image (
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0draw (llcorner unitsquare -= - urcorner unitsquare) scaled 5mm ;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0% how to get the corner dot= s
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0withpatternscale 1/16
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0withpen pencircle scaled 1mm
=C2=A0 =C2=A0 =C2=A0;
\stopMPcode

\stoptext


-----------------------------------------------------------------
=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=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 | www.pragma-ade.nl | www.= pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________= ________
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
___________________________________________________________________________= ________
--000000000000ca981205e9bc8493-- --===============2734922155675290889== 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== --===============2734922155675290889==--