ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Fabrice Couvreur <fabrice1.couvreur@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:25:51 +0100	[thread overview]
Message-ID: <CACyK-eoJD12G9D40X0if_cNOu5kpCW_H93AT0zeQ_uEAg_Zstw@mail.gmail.com> (raw)
In-Reply-To: <CAHy-LL8=7BHHXSVWsSsEVP1-txN_E_DnGpPc8EoOaERFyzNKQw@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 3323 bytes --]

Hi Mikael,
It works, thank you very much.
Fabrice

Le dim. 3 nov. 2024 à 17:08, Mikael Sundqvist <mickep@gmail.com> a écrit :

> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 5353 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
___________________________________________________________________________________

      reply	other threads:[~2024-11-03 16:28 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 ` [NTG-context] " Mikael Sundqvist
2024-11-03 16:25   ` Fabrice Couvreur [this message]

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-eoJD12G9D40X0if_cNOu5kpCW_H93AT0zeQ_uEAg_Zstw@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).