From: Fabrice Couvreur via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
Subject: Re: About macro numberstriped ()
Date: Wed, 28 Sep 2022 15:11:41 +0200 [thread overview]
Message-ID: <CACyK-ervw9KrBH0nJ3DD+LgW-gyN8V2OwzVwUbFnqUjuhcirqw@mail.gmail.com> (raw)
In-Reply-To: <b72eef52-0748-7d44-c1df-5821389bec2a@freedom.nl>
[-- Attachment #1.1: Type: text/plain, Size: 2677 bytes --]
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 à 22:04, Hans Hagen via ntg-context <
ntg-context@ntg.nl> a écrit :
> 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 := unitsquare xyscaled (4cm,4cm) ;
> > z[0] = (2cm,0cm) ;
> > z[1] = (2cm,4cm) ;
> > z[2] = (0cm,2cm) ;
> > q := llcorner p--z[0]--z[1]--z[2]--cycle ;
> > r := unitsquare xyscaled (1cm,1cm) shifted(0,3cm) ;
> > b := 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 blobs
>
> \starttext
>
> \startMPcode
> path p, q, r, b ;
> path p ; p := 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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 4221 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2022-09-28 13:11 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-27 17:49 Fabrice Couvreur via ntg-context
2022-09-27 20:04 ` Hans Hagen via ntg-context
2022-09-28 13:11 ` Fabrice Couvreur via ntg-context [this message]
2022-09-28 13:29 ` Hans Hagen via ntg-context
2022-09-28 19:04 ` Henning Hraban Ramm via ntg-context
2022-10-01 17:42 ` Fabrice Couvreur via ntg-context
2022-10-01 19:46 ` Mikael Sundqvist via ntg-context
2022-10-02 8:55 ` Fabrice Couvreur via ntg-context
2022-10-02 9:20 ` Floris van Manen via ntg-context
2022-10-02 9:49 ` Fabrice Couvreur via ntg-context
2022-10-02 9:52 ` Hans Hagen via ntg-context
2022-10-02 11:02 ` Fabrice Couvreur via ntg-context
2022-10-02 11:38 ` Hans Hagen via ntg-context
2022-10-02 13:13 ` Fabrice Couvreur via ntg-context
2022-10-02 13:26 ` Hans Hagen via ntg-context
2022-10-02 13:36 ` Mikael Sundqvist via ntg-context
2022-10-02 16:15 ` Fabrice Couvreur via ntg-context
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CACyK-ervw9KrBH0nJ3DD+LgW-gyN8V2OwzVwUbFnqUjuhcirqw@mail.gmail.com \
--to=ntg-context@ntg.nl \
--cc=fabrice1.couvreur@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).