From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/116108 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: Sat, 1 Oct 2022 19:42:31 +0200 Message-ID: References: <18131ab4-f5c7-b5d0-e331-a1f7ddeac221@freedom.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5593576233926831704==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31259"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Fabrice Couvreur To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Oct 01 19:44:34 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 1oegXS-0007xs-QW for gctc-ntg-context-518@m.gmane-mx.org; Sat, 01 Oct 2022 19:44:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 053CC2A27FD; Sat, 1 Oct 2022 19:43:55 +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 v-66k5A8r5q4; Sat, 1 Oct 2022 19:43:53 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3872D2A3643; Sat, 1 Oct 2022 19:43:53 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C5A4E2A3642 for ; Sat, 1 Oct 2022 19:43:51 +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 FfjHaV5eZwbA for ; Sat, 1 Oct 2022 19:43:49 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.215.179; helo=mail-pg1-f179.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Original-Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) (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 791152A27FD for ; Sat, 1 Oct 2022 19:43:49 +0200 (CEST) Original-Received: by mail-pg1-f179.google.com with SMTP id j71so445349pge.2 for ; Sat, 01 Oct 2022 10:43:49 -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=AIskjx4jfgiMo+nGm9kfn+su4XkRInVOUC9IrtYkTnc=; b=BbyFmFG7k40Z9HSupbBEDx8VB52e61hy1I6c/AF8AJ5LfOyewBme/7t6nMy7IqO5JT 8jJU9xYW5jrDc79yJrNBnVAjocdvfvQNneSLsKLfETbBvyzTEmu1LOcKJ3A0La3w+PHD n0EjEqgy+cinuExgpZxARVXaz69pLnkcmZDbTFtGqOlpfwueJVIP32TRJjYUH6OBBaCN Qq2zaxo7SmGw+T2HV329Q9cNQi3Yk7J6mPEUfePNlr9vV0C4d1SGCSAHKK1alRD5d479 zCIzckGwBGpq+Ks77caprWVwFZ/bpiUj4y8H0ZNTJlSwD8uCTOj14g/+B7TtW5L7I79t Dvqg== 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=AIskjx4jfgiMo+nGm9kfn+su4XkRInVOUC9IrtYkTnc=; b=jydvAN/MVz12LMlc6f5VMKKCLkR/+KnHwbWdV6rPRTCq+PcWocN3OIDS8qNHhMYNmg Ta7tIM3WJOpvJEb8aaytZDK3OXB1/D2Q+yYo0S5SUktGUNIQYpvGZqnfr1jzA5mNeP1H ZlVAqpj+Adk2pnBUcL96Ku1vA7xGKC6oVkwi/LkywaALin+RTXfDwfNMP2wG9zbP95Ge vEP8hqjpD+z9g8GixJWwRkRz+w8sErvTOmeAH7QUorioeCZJGHTJGZfT1ckaoNWViNU8 2DWrTQifjLy4nqXVWkmtdmMsI907aiRG+HGRRIenK+m6zR6S5UY8qy+rMPRYXjDirGkR l3yg== X-Gm-Message-State: ACrzQf3EK+8CQScUrhEL7D5XfEa0Nwk77Wu6JMmV3p5zEoV6y7SrWobT si1pmptLhTZbGgIQL+QZLHqshTndkkigflC3FbIPiYgNlD4= X-Google-Smtp-Source: AMsMyM53/9KqLIkwHmv+aoxjaRrFTkgF3QEnpG/6zwczr/j43hP/akQIg5IVlf/tBY+7DTFC7U4BD+gPCADVIS3rGms= X-Received: by 2002:a62:16ca:0:b0:55f:ceb3:9103 with SMTP id 193-20020a6216ca000000b0055fceb39103mr2880600pfw.60.1664646226661; Sat, 01 Oct 2022 10:43:46 -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:116108 Archived-At: --===============5593576233926831704== Content-Type: multipart/alternative; boundary="000000000000045da905e9fca7ab" --000000000000045da905e9fca7ab Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Hans, When the rectangles are not identical, how to have the same type of hatching in both ? Thanks. Fabrice \starttext \startlinecorrection[blank] \startmidaligned \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 r withpattern image ( draw (llcorner unitsquare -- urcorner unitsquare) scaled 5mm ; % how to get the corner dots ) withpatternscale 1/8 withpen pencircle scaled 1pt withcolor cyan; ; draw b withpattern image ( draw (llcorner unitsquare -- urcorner unitsquare) scaled 5mm ; % how to get the corner dots ) withpatternscale 1/16 withpen pencircle scaled 1pt withcolor cyan; ; draw p; draw b; draw r; 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 \stopmidaligned \stoplinecorrection \stoptext Le mer. 28 sept. 2022 =C3=A0 21:05, Henning Hraban Ramm via ntg-context < ntg-context@ntg.nl> a =C3=A9crit : > Am 28.09.22 um 15:29 schrieb Hans Hagen via ntg-context: > > On 9/28/2022 3:11 PM, Fabrice Couvreur via ntg-context wrote: > >> PS : What is the exact meaning of the word "blobs" because my English > >> is average ? > > in order to get 'lines' you need to fill the two opposing corners with > > "blobs of ink" > > Otherwise, a BLOB is a =E2=80=9Cbinary large object=E2=80=9D, e.g. if you= save image > data to a database. > > 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 > > _________________________________________________________________________= __________ > --000000000000045da905e9fca7ab Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Hans,
When the rectangles are not identical, how to have = the same type of hatching in both ?
Thanks.
Fabrice


=
\star= ttext
=C2=A0\startlinecorrection[blank]
=C2=A0 =C2=A0 =C2=A0 \startmi= daligned
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \switchtobodyfont[9pt]
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 \startMPcode
=C2=A0 path p, q, r, b ;
=C2=A0 p = =C2=A0:=3D unitsquare xyscaled (4cm,4cm) ;
=C2=A0 z[0] =3D (2cm,0cm) ;=C2=A0 z[1] =3D (2cm,4cm) ;
=C2=A0 z[2] =3D (0cm,2cm) ;
=C2=A0 q := =3D llcorner p--z[0]--z[1]--z[2]--cycle ;
=C2=A0 r :=3D unitsquare xysca= led (1cm,1cm) shifted(0,3cm) ;
=C2=A0 b :=3D unitsquare xyscaled (3cm,3c= m) shifted(1cm,0) ;
=C2=A0
=C2=A0 draw r
=C2=A0 =C2=A0 =C2=A0with= pattern image (
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0draw (ll= corner unitsquare -- urcorner unitsquare) scaled 5mm ;
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0% how to get the corner dots
=C2=A0 =C2= =A0 =C2=A0 =C2=A0)
=C2=A0 =C2=A0 =C2=A0 =C2=A0withpatternscale 1/8
= =C2=A0 =C2=A0 =C2=A0 =C2=A0withpen pencircle scaled 1pt
=C2=A0 =C2=A0 = =C2=A0 =C2=A0withcolor cyan;
=C2=A0 =C2=A0 =C2=A0 =C2=A0;
=C2=A0 =C2= =A0 =C2=A0draw b
=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 -- u= rcorner unitsquare) scaled 5mm ;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0% how to get the corner dots
=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=A0withpen pencircle scaled 1pt
=C2=A0 =C2=A0 =C2=A0 =C2=A0withcolor = cyan;
=C2=A0 =C2=A0 =C2=A0 =C2=A0;

=C2=A0 =C2=A0 =C2=A0 =C2=A0dra= w p;
=C2=A0 =C2=A0 =C2=A0 =C2=A0draw b;
=C2=A0 =C2=A0 =C2=A0 =C2=A0dr= aw r;
=C2=A0 =C2=A0 =C2=A0 =C2=A0
=C2=A0 =C2=A0 =C2=A0label.llft(&quo= t;D", p) ;
=C2=A0 =C2=A0 =C2=A0label.lrt("C", p) ;
=C2= =A0 =C2=A0 =C2=A0label.ulft("A", p) ;
=C2=A0 =C2=A0 =C2=A0labe= l.urt("B", p) ;
=C2=A0 =C2=A0 =C2=A0label.urt("P", l= rcorner r) ;
=C2=A0 =C2=A0 =C2=A0label.lft("Q", llcorner r) ;<= br>=C2=A0 =C2=A0 label.top("M", urcorner r) ;
=C2=A0
=C2= =A0 \stopMPcode
=C2=A0 =C2=A0 =C2=A0 \stopmidaligned
=C2=A0 =C2=A0 \s= toplinecorrection
\stoptext



Le=C2=A0mer. 28 sept. 20= 22 =C3=A0=C2=A021:05, Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl> a =C3=A9crit=C2=A0:
=
Am 28.09.22 um 15:2= 9 schrieb Hans Hagen via ntg-context:
> On 9/28/2022 3:11 PM, Fabrice Couvreur via ntg-context wrote:
>> PS :=C2=A0What is the exact meaning of the word "blobs" = because my English
>> is average ?
> in order to get 'lines' you need to fill the two opposing corn= ers with
> "blobs of ink"

Otherwise, a BLOB is a =E2=80=9Cbinary large object=E2=80=9D, e.g. if you s= ave image
data to a database.

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
___________________________________________________________________________= ________
--000000000000045da905e9fca7ab-- --===============5593576233926831704== 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== --===============5593576233926831704==--