From: Mikael Sundqvist <mickep@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: Problem with Metapost
Date: Sun, 3 Nov 2024 17:03:43 +0100 [thread overview]
Message-ID: <CAHy-LL8=7BHHXSVWsSsEVP1-txN_E_DnGpPc8EoOaERFyzNKQw@mail.gmail.com> (raw)
In-Reply-To: <CACyK-erGiR_9dVh3xBb77wLp2EvwuHL9e-2-TBZ2+LiVt4Cyjw@mail.gmail.com>
Hi,
you get an error of redundant equations. Try
numeric ymax,xmax ; ymax := 7 ; xmax := 7;
numeric xmin,ymin ; xmin :=-1 ; ymin := -1;
and it might work.
(It is a bit weird that ymax = 7 several times result in an error, but ... )
/Mikael
On Sun, Nov 3, 2024 at 4:47 PM Fabrice Couvreur
<fabrice1.couvreur@gmail.com> wrote:
>
> 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
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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 prev parent reply other threads:[~2024-11-03 16:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-03 15:48 [NTG-context] " Fabrice Couvreur
2024-11-03 16:03 ` Mikael Sundqvist [this message]
2024-11-03 16:25 ` [NTG-context] " 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='CAHy-LL8=7BHHXSVWsSsEVP1-txN_E_DnGpPc8EoOaERFyzNKQw@mail.gmail.com' \
--to=mickep@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).