From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id AF7412AE93 for ; Sun, 3 Nov 2024 17:28:07 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id A0B18484880 for ; Sun, 3 Nov 2024 17:26:57 +0100 (CET) Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=ntg.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntg.nl; h= content-type:content-type:list-unsubscribe:list-subscribe :list-post:list-owner:list-help:list-archive:archived-at:list-id :subject:subject:reply-to:precedence:message-id:date:date:from :from:in-reply-to:references:mime-version:received:received :received:received:received:received; s=cgl; t=1730651217; x= 1733243218; bh=8PV76LnRULQ4JrFdkoIxPW5/2kAvoA8TRqDEAAxky5Y=; b=i tZnfrUCvk7N29Hm6BatlnIgVF9pY3X1m4Omc7KHqzfciU0qFOc/tOEpYCyXueTTe OqOrzW+901AX/rsE1bqNqWyWSf+p3qTp6eYP1qrydMWLIB0xh8hKly2YkXSrmry9 RwJ06+5QJwtHYvBHhsmrH7cadaw2NkKQTSm9AHhLUI= X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=gmail.com Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7Stcgm-9mOuV for ; Sun, 3 Nov 2024 17:26:57 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 9FDDB484EE6 for ; Sun, 3 Nov 2024 17:25:08 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id B758E483FB5 for ; Sun, 3 Nov 2024 17:24:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id URa88SzejMz0 for ; Sun, 3 Nov 2024 17:24:24 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.49; helo=mail-ed1-f49.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 3DC6B483F6A for ; Sun, 3 Nov 2024 17:24:23 +0100 (CET) Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-5ceb03aadb1so3555640a12.0 for ; Sun, 03 Nov 2024 08:24:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730651063; x=1731255863; darn=ntg.nl; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=1rp4hEHGbnL9MwyEPjYNDfQKjar/69x++ZQ+Oe0Yl2Q=; b=Th/Pdd05xE2V7At4dqfNYl8bN2YL3xrZDYUo6MJY/NJJd0Fdb+TDBeyCaTaWcseBM2 IdcK0cMwAYeoBwBXKySC0hLBh4N0QJKDPSpi3VULcgp7WbL2MQYTphoS2dT3L569lTq1 JE+40xF5wUXWQ+XrR2DIGaQDh5TCzf6kDipm5BDHXnwVAWdp9go29PHK/tJZ3h2hfioe lnlsL6n7hVD7wjqJgVmV7GEg6b9Q7X27TZhj0YBf1DAmrCt8fskSF0TLhJIssa790+rX 4ZZl/97bLMeD2TMFeXmhTC44lUibi2wTRJY22OHDBlPyiJYh6MDLMuv8v6IXUOFYwTsZ QlAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730651063; x=1731255863; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1rp4hEHGbnL9MwyEPjYNDfQKjar/69x++ZQ+Oe0Yl2Q=; b=lbxHVmhIf7LOoc3qTId3xE7UDwSp8IhLGbqajY2oqmK3waG0PiktLwZoH4fbSC6ZSL sq0F+JW+2iiukSVt2ED1GeQepbf6De7tXZyL+CAatHfXZtZv2l7PldwNJvW+IZ44oJEj J8R9rRhD9cc1oSjQzwMv4eGQwjzemCEHlNPVAgXJGJfuqmc0nANV6pMMwCF4SZMkRJup SUnXnB+V2eZZ3UTJ3uX1bhrcFxhnCyO9HsFd5Tk5T7v3FyBZgQpoRSZPt2TKX3n7f+Wz m8ao53381DhQJjWukjBf2LAhOBULFdGgiJiIvNvH6/B5hvEfuE1XRakinzWuUmfjzIqN rslw== X-Gm-Message-State: AOJu0YzYhf1kDfuYTMCrOQdKZi3BsxB/XSwKaN2UuK/dfkkHKve9E69f kc52j8rKDMb2OXONSfoFlebFnkPqC3nlq29odCxpAKTcLBzKp22e1d7dvHEI5rftVAUitRQk7xn +6EVMHx6z4Xjwnhl5R9GmC/TTcqIbMS+h X-Google-Smtp-Source: AGHT+IHxjPMakkFZFPNS36A/YTZT0VweKe6jAegkHjIZNlO6oImVhSV/6MHIimpEaPzZ3u+7M6HyDpDgIomxEF2jnDk= X-Received: by 2002:a05:6402:3182:b0:5ce:d491:c0b2 with SMTP id 4fb4d7f45d1cf-5ced491c977mr1255041a12.12.1730651063036; Sun, 03 Nov 2024 08:24:23 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Fabrice Couvreur Date: Sun, 3 Nov 2024 17:25:51 +0100 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: VNJTW7GVXDJO54GRUZOUMI3MCCKCO3JR X-Message-ID-Hash: VNJTW7GVXDJO54GRUZOUMI3MCCKCO3JR X-MailFrom: fabrice1.couvreur@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Problem with Metapost List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============7009135123869973429==" --===============7009135123869973429== Content-Type: multipart/alternative; boundary="000000000000d7b2a4062604992c" --000000000000d7b2a4062604992c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Mikael, It works, thank you very much. Fabrice Le dim. 3 nov. 2024 =C3=A0 17:08, Mikael Sundqvist a =C3= =A9crit : > Hi, > > you get an error of redundant equations. Try > > numeric ymax,xmax ; ymax :=3D 7 ; xmax :=3D 7; > numeric xmin,ymin ; xmin :=3D-1 ; ymin :=3D -1; > > and it might work. > > (It is a bit weird that ymax =3D 7 several times result in an error, but = ... > ) > > /Mikael > > On Sun, Nov 3, 2024 at 4:47=E2=80=AFPM Fabrice Couvreur > wrote: > > > > Hi, > > I think I have never encountered this problem. Recently, I can no longe= r > have a succession of figures with Metapost; only the first one appears. > > Thanks. > > Fabrice > > > > \starttext > > \dorecurse{3}{\startMPcode > > numeric u; > > u =3D 0.5cm; > > ymax =3D xmax =3D 7; > > xmin =3D ymin =3D -1; > > interim ahangle :=3D 30; > > z0 =3D (1u,1u); > > z1 =3D (2u,3u); > > z2 =3D (0,5u); > > path xx, yy; > > xx =3D ((xmin,0) -- (xmax,0)) scaled u; > > yy =3D ((0,ymin) -- (0,ymax)) scaled u; > > drawoptions(scaled .5 withcolor .7 white); > > for i =3D ceiling ymin upto floor ymax: draw xx shifted > (0,i*u); endfor > > for i =3D ceiling xmin upto floor xmax: draw yy shifted > (i*u,0); endfor > > drawoptions(); > > path fuzz; > > fuzz =3D 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 > > _________________________________________________________________________= __________ > --000000000000d7b2a4062604992c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Mikael,
It works, thank you very much.
Fabrice

Le= =C2=A0dim. 3 nov. 2024 =C3=A0=C2=A017:08, Mikael Sundqvist <mickep@gmail.com> a =C3=A9crit=C2=A0:
Hi,

you get an error of redundant equations. Try

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 numeric ymax,xmax ; ymax :=3D 7 ;= xmax :=3D 7;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 numeric xmin,ymin ; xmin :=3D-1 ;= ymin :=3D -1;

and it might work.

(It is a bit weird that ymax =3D 7 several times result in an error, but ..= . )

/Mikael

On Sun, Nov 3, 2024 at 4:47=E2=80=AFPM Fabrice Couvreur
<fabric= e1.couvreur@gmail.com> wrote:
>
> Hi,
> I think I have never encountered this problem. Recently, I can no long= er have a succession of figures with Metapost; only the first one appears.<= br> > Thanks.
> Fabrice
>
> \starttext
> \dorecurse{3}{\startMPcode
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0numeric u;
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0u =3D 0.5cm;
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ymax =3D xmax =3D 7; >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0xmin =3D ymin =3D -1; >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0interim ahangle :=3D 30= ;
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0z0 =3D (1u,1u);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0z1 =3D (2u,3u);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0z2 =3D (0,5u);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0path xx, yy;
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0xx =3D ((xmin,0) -- (xm= ax,0)) scaled u;
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0yy =3D ((0,ymin) -- (0,= ymax)) scaled u;
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0drawoptions(scaled .5 w= ithcolor .7 white);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0for i =3D ceiling ymin = upto floor ymax: draw xx shifted (0,i*u); endfor
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0for i =3D ceiling xmin = upto floor xmax: draw yy shifted (i*u,0); endfor
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0drawoptions();
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0path fuzz;
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0fuzz =3D z0 -- z1 -- z2= -- cycle;
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0fill fuzz withcolor 0.7= [blue,white];
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0draw fuzz withcolor blu= e;
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0fill fuzz shifted(4u,1u= ) withcolor 0.7[blue,white];
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0draw fuzz shifted(4u,1u= ) withcolor blue;
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0drawoptions(withpen pen= circle scaled 1pt);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0drawarrow z0 -- z0 shif= ted (4u,1u);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0drawarrow z1 -- z1 shif= ted (4u,1u);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0drawarrow z2 -- z2 shif= ted (4u,1u);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0drawoptions();
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0label("\im{\vec{v}= }", (3.5u,3u));
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0label.llft("\im{A}= ",z0);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0label.lrt("\im{B}&= quot;,z0 shifted (4u,1u));
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\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=C2=A0 : https://www.pragma-ade.nl / https://context.aanhe= t.net (mirror)
> archive=C2=A0 : https://github.com/contextgarden/contex= t
> wiki=C2=A0 =C2=A0 =C2=A0: https://wiki.contextgarden.net
> ______________________________________________________________________= _____________
___________________________________________________________________________= ________
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://mailman.ntg.nl/mail= man3/lists/ntg-context.ntg.nl
webpage=C2=A0 : https://www.pragma-ade.nl / https://context.aanhet.net= (mirror)
archive=C2=A0 : https://github.com/contextgarden/context=
wiki=C2=A0 =C2=A0 =C2=A0: https://wiki.contextgarden.net
___________________________________________________________________________= ________
--000000000000d7b2a4062604992c-- --===============7009135123869973429== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============7009135123869973429==--