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.5 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,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 6068823823 for ; Fri, 26 Apr 2024 12:24:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 6E5EC4843F5 for ; Fri, 26 Apr 2024 12:24:10 +0200 (CEST) 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 p5azZia0mDVN for ; Fri, 26 Apr 2024 12:24:10 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 0779A484516 for ; Fri, 26 Apr 2024 12:23:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 54FC5484270 for ; Fri, 26 Apr 2024 12:22:38 +0200 (CEST) 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 2BFTQRhAAEEB for ; Fri, 26 Apr 2024 12:22:37 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.41; helo=mail-ej1-f41.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 D6D8948426F for ; Fri, 26 Apr 2024 12:22:37 +0200 (CEST) Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a4702457ccbso268533866b.3 for ; Fri, 26 Apr 2024 03:22:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714126957; x=1714731757; 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=vXO9EQhmkyb3KJwcnGMWWh/TN+aT5+RsSMa/K7P6BH8=; b=OwU7NYOSJx7uh0KKRGNvZSWhuKs104AHWDImsSSkZyiXeIknTWzOpcwwkHI1bMPN12 xyiLtM9Jxpd+02W2GMZXwZkZby+M9J93HhMAAViXnDh67goX7vEdaFve0bkip9QzEbTU QmN0BEvLxQBmapdLfey/vnmGetehdRVwTxLfI67T0otAdQQAm49tgpLTZJhv0mBEKw9f X6yOMVFkegUBMIG+mhBGCtKTd8kBDE8L82tieak9Dh1tzTXAhg3t55sjbIL/MRuVvLiZ J7/kmJi5kPr/IWTZTrXkFPH/xqzi+pITb86cNlWUGtxBJtQ4HqqxFmD55hCYsSKdk7nx 97zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714126957; x=1714731757; 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=vXO9EQhmkyb3KJwcnGMWWh/TN+aT5+RsSMa/K7P6BH8=; b=cuk2pjcvzY+pKarETNRYeJH4NX2NH0RV+tkNFWYCHgxN6Z5ypqoX2p9MpbPb5U71YP 91tIrhtFj2xmVHRQcYyc3ZhHAcPps1YrDxPkUa47ozbrJRuIC3MJNdw1P2rmWdqAC4eY RrVull7pmEe+Mw2tSEQmRYjGvSo3UDipYb0E/kfCD7fZDrQPmKUNdZPUwhVss/XAj2cN 2wnSDLU/m8GVSgUNL0ovdV1z5M39e0a097d6Jyin+pq+YdKCPluU2SElfqkSdU2w838q ErI7ffg5hIFCuYXl0iDkQFanGqIpC+qFz3Fz9mqCshHcLjPC1z3TL3+NXMIeC0J4OFmK Vh0Q== X-Gm-Message-State: AOJu0YxgI7U5VrsVziYd8ty4CdqI917JwM19kEbqyCoketKuYUGOtm62 J34wNCmhBnBK+csQ0/anU88vBlX4EBprWXlC1qjO/zMmSKVSTFvkMAe2P+UlZs6IsVFYkd9+Ift NwmOWf91A8Njb9lHOTuGVTNgux5EZEVco X-Google-Smtp-Source: AGHT+IHibdEtjzlnz36BRGeqWrc8f+afTXJppk1DPlxFdiMdnnEG2WsoUXj1yiyOqPPdV/Jm/zWIcTEWss+1nwRz5Uc= X-Received: by 2002:a17:906:80cf:b0:a58:9239:d7cc with SMTP id a15-20020a17090680cf00b00a589239d7ccmr1616732ejx.31.1714126956770; Fri, 26 Apr 2024 03:22:36 -0700 (PDT) MIME-Version: 1.0 References: <2A3CD2A2-62AE-4A5D-B8F3-5B622CF465C5@bittext.nl> <92DBD2D7-D344-49DE-A27B-C2A88E57A176@bittext.nl> <253228n4-s614-3p1r-720o-4rnr48167s8r@hzvpu.rqh> In-Reply-To: <253228n4-s614-3p1r-720o-4rnr48167s8r@hzvpu.rqh> From: Fabrice Couvreur Date: Fri, 26 Apr 2024 12:22:32 +0200 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: JY2LGC6UWKXR6RS3UCR2Y7LVGN5SYQHZ X-Message-ID-Hash: JY2LGC6UWKXR6RS3UCR2Y7LVGN5SYQHZ 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.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: The graph is not visible. 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="===============2341484044517262819==" --===============2341484044517262819== Content-Type: multipart/alternative; boundary="0000000000005bbd3b0616fd4825" --0000000000005bbd3b0616fd4825 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Thanks for your help. I did several tests playing only with the code of component 5 which interferes with that of component 14. @Aditya begingroup; ..... endgroup; does not work. @Hans save defaultfont, defaultscale; maybe also: save circle, p, q, b ; I get an empty rectangle in place of the graph in composant 5. @Taco The solution that works is to add component 14 to the code numeric a, b; Fabrice Le ven. 26 avr. 2024 =C3=A0 10:45, Aditya Mahajan a =C3= =A9crit : > On Fri, 26 Apr 2024, Taco Hoekwater wrote: > > > > > > > > On 25 Apr 2024, at 23:12, Fabrice Couvreur < > fabrice1.couvreur@gmail.com> wrote: > > > > > > Hi, > > > Here is the code that interferes with the graph from the last chapter > but why ? > > > > Because of this =E2=80=9Cpath b=E2=80=9D: > > > > > path circle, p, q, b; > > > > which interferes with the assignment line from the other graphic code: > > > > > b :=3D xpart(reverse C_f intersectionpoint reverse C_g); > > > > because there =E2=80=9Cb=E2=80=9D is a now a path, not a numeric. > > > > Adding > > > > numeric a,b; > > > > fixes the problem in chapter 14. > > Woundn't newnumeric be better? > > There are very few instances where I want variables defined in one block > to be reused in another block. So, I almost always use > > \startMPcode > begingroup; > .... > endgroup; > \stopMPcode > > to avoid such issues. > > > Aditya___________________________________________________________________= ________________ > 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 > > _________________________________________________________________________= __________ > --0000000000005bbd3b0616fd4825 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
Thanks for your help. I did several tests playing only w= ith the code of component 5 which interferes with that of component 14.
@Aditya
begingroup;
.....
endgroup;
does not work.

@Hans
save defaultfont, defaultscale= ;

maybe also:

save circle, p, q, b ;

I get an empty rectangle in place of the graph in composant 5.
<= br>
@Taco
The so= lution that works is to add component 14 to the code

numeric a, b;=

Fabrice


Le=C2=A0ven. 26 avr. 2024 =C3=A0=C2=A010:45, Aditya= Mahajan <adityam@umich.edu>= a =C3=A9crit=C2=A0:
On Fri, 26 Apr 2024, Taco Hoekwater wrote:

>
>
> > On 25 Apr 2024, at 23:12, Fabrice Couvreur <fabrice1.couvreur@gmail.com<= /a>> wrote:
> >
> > Hi,
> > Here is the code that interferes with the graph from the last cha= pter but why ?
>
> Because of this =E2=80=9Cpath b=E2=80=9D:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0
> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 path circle, p, q= , b;
>
> which interferes with the assignment line from the other graphic code:=
>
> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 b :=3D xpart(reve= rse C_f intersectionpoint reverse C_g);
>
> because there =E2=80=9Cb=E2=80=9D is a now a path, not a numeric.
>
> Adding
>
>=C2=A0 =C2=A0 numeric a,b;
>
> fixes the problem in chapter 14.

Woundn't newnumeric be better?

There are very few instances where I want variables defined in one block to= be reused in another block. So, I almost always use

\startMPcode
begingroup;
....
endgroup;
\stopMPcode

to avoid such issues.

Aditya_____________________________________________________________________= ______________
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
___________________________________________________________________________= ________
--0000000000005bbd3b0616fd4825-- --===============2341484044517262819== 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 ___________________________________________________________________________________ --===============2341484044517262819==--