From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: The graph is not visible.
Date: Fri, 26 Apr 2024 12:22:32 +0200 [thread overview]
Message-ID: <CACyK-epUOttb8g+kMLRayX1=hdjyJkDUhQTtiPXfJyBrqk-c+A@mail.gmail.com> (raw)
In-Reply-To: <253228n4-s614-3p1r-720o-4rnr48167s8r@hzvpu.rqh>
[-- Attachment #1.1: Type: text/plain, Size: 2009 bytes --]
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 à 10:45, Aditya Mahajan <adityam@umich.edu> a écrit :
> 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___________________________________________________________________________________
> 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: 4550 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
___________________________________________________________________________________
prev parent reply other threads:[~2024-04-26 10:24 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
2024-04-26 10:22 ` 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-epUOttb8g+kMLRayX1=hdjyJkDUhQTtiPXfJyBrqk-c+A@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).