From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: The graph is not visible.
Date: Fri, 26 Apr 2024 10:32:47 +0200 (CEST) [thread overview]
Message-ID: <253228n4-s614-3p1r-720o-4rnr48167s8r@hzvpu.rqh> (raw)
In-Reply-To: <92DBD2D7-D344-49DE-A27B-C2A88E57A176@bittext.nl>
[-- Attachment #1: Type: text/plain, Size: 880 bytes --]
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 “path b”:
>
> > path circle, p, q, b;
>
> which interferes with the assignment line from the other graphic code:
>
> > b := xpart(reverse C_f intersectionpoint reverse C_g);
>
> because there “b” 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
[-- 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 prev parent reply other threads:[~2024-04-26 8:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-25 10:27 [NTG-context] " Fabrice Couvreur
2024-04-25 11:31 ` [NTG-context] " Taco Hoekwater
2024-04-25 14:08 ` Fabrice Couvreur
2024-04-25 14:31 ` Hans Hagen
2024-04-25 14:32 ` Taco Hoekwater
2024-04-25 14:55 ` Fabrice Couvreur
2024-04-25 21:12 ` Fabrice Couvreur
2024-04-26 7:20 ` Taco Hoekwater
2024-04-26 8:32 ` Aditya Mahajan [this message]
2024-04-26 10:22 ` 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=253228n4-s614-3p1r-720o-4rnr48167s8r@hzvpu.rqh \
--to=adityam@umich.edu \
--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).