From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Problem with Metapost
Date: Sun, 3 Nov 2024 16:48:55 +0100 [thread overview]
Message-ID: <CACyK-erGiR_9dVh3xBb77wLp2EvwuHL9e-2-TBZ2+LiVt4Cyjw@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1460 bytes --]
Hi,
I think I have never encountered this problem. Recently, I can no longer
have a succession of figures with Metapost; only the first one appears.
Thanks.
Fabrice
\starttext
\dorecurse{3}{\startMPcode
numeric u;
u = 0.5cm;
ymax = xmax = 7;
xmin = ymin = -1;
interim ahangle := 30;
z0 = (1u,1u);
z1 = (2u,3u);
z2 = (0,5u);
path xx, yy;
xx = ((xmin,0) -- (xmax,0)) scaled u;
yy = ((0,ymin) -- (0,ymax)) scaled u;
drawoptions(scaled .5 withcolor .7 white);
for i = ceiling ymin upto floor ymax: draw xx shifted (0,i*u);
endfor
for i = ceiling xmin upto floor xmax: draw yy shifted (i*u,0);
endfor
drawoptions();
path fuzz;
fuzz = z0 -- z1 -- z2 -- cycle;
fill fuzz withcolor 0.7[blue,white];
draw fuzz withcolor blue;
fill fuzz shifted(4u,1u) withcolor 0.7[blue,white];
draw fuzz shifted(4u,1u) withcolor blue;
drawoptions(withpen pencircle scaled 1pt);
drawarrow z0 -- z0 shifted (4u,1u);
drawarrow z1 -- z1 shifted (4u,1u);
drawarrow z2 -- z2 shifted (4u,1u);
drawoptions();
label("\im{\vec{v}}", (3.5u,3u));
label.llft("\im{A}",z0);
label.lrt("\im{B}",z0 shifted (4u,1u));
\stopMPcode}
\stoptext
[-- Attachment #1.2: Type: text/html, Size: 2056 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2024-11-03 15:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-03 15:48 Fabrice Couvreur [this message]
2024-11-03 16:03 ` [NTG-context] " Mikael Sundqvist
2024-11-03 16:25 ` Fabrice Couvreur
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-erGiR_9dVh3xBb77wLp2EvwuHL9e-2-TBZ2+LiVt4Cyjw@mail.gmail.com \
--to=fabrice1.couvreur@gmail.com \
--cc=ntg-context@ntg.nl \
/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).