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: Thu, 25 Apr 2024 23:12:49 +0200 [thread overview]
Message-ID: <CACyK-eqHs_DJwV=5HGvOQwH3jgqk0f44Ewiar_B8o4YEO83ySA@mail.gmail.com> (raw)
In-Reply-To: <CACyK-epNb1pStTyJ5aXhozJTWhDBBLtDebznUco6XdqiabXMFQ@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 3539 bytes --]
Hi,
Here is the code that interferes with the graph from the last chapter but
why ?
\startMPcode
pickup pencircle xscaled 1;
defaultfont := "texgyrepagella-regular*default" ;
defaultscale := 0.8 ;
path circle, p, q, b;
circle = fullcircle xscaled 5cm yscaled 3.5cm;
p = (point 2 of circle .. (-0.15cm,1.5cm)
..(0,0)..(0.15cm,-1.5cm).. point 6 of circle);
q = (subpath(0,2) of circle -- p -- subpath(6,8) of circle
--cycle);
b = (reverse p -- subpath(2,6) of circle -- cycle);
definecolor [ name = "mp:red", r = 1 ];
definecolor [ name = "mp:blue", r = 0.54, g = 0.17, b = 0.89 ];
fill q withcolor "mp:red" withtransparency(1,0.4) ;
fill b withcolor "mp:blue" withtransparency(1,0.4) ;
draw circle;
draw p;
label("$\overline{\text{A}}$",( 1.5cm,0));
label("$\text{A}$",(-1.5cm,0));
label.top("E",(0,1.85cm));
\stopMPcode
Le jeu. 25 avr. 2024 à 16:55, Fabrice Couvreur <fabrice1.couvreur@gmail.com>
a écrit :
> Hi Hans and Taco,
> @Hans, I compiled by commenting and uncommenting one component at a time;
> it is component 5 which interferes with the metapost code of component 14
> All I have to do now is find out what the cause is.
> Fabrice
>
> Le jeu. 25 avr. 2024 à 16:40, Taco Hoekwater <taco@bittext.nl> a écrit :
>
>>
>>
>> > On 25 Apr 2024, at 16:08, Fabrice Couvreur <fabrice1.couvreur@gmail.com>
>> wrote:
>> >
>> > Hi Taco,
>> > I knew I wouldn't be able to explain what was happening.
>> > The code works perfectly and the figure is clearly visible in the
>> component chapter-14 :
>>
>> It is probably not related to the figure itself. Something may be
>> different in this component compared to the other ones. I cannot really
>> say, of course. Still, using external image instead of inline metapost may
>> be fix it. Not elegant, but if it works it works!
>>
>> Good luck,
>> Taco
>>
>>
>> >
>> > \startcomponent[chapter-14]
>> > \startMPpage
>> > ...
>> > \stopMPpage
>> > \stopcomponent
>> >
>> > But if I compile my project, it disappears !!
>> >
>> > \startproduct[terminale-manual]
>> > \startbodymatter
>> > \component[chapter-1]
>> > \component[chapter-2]
>> > \component[chapter-3]
>> > \component[chapter-4]
>> > \component[chapter-5]
>> > \component[chapter-6]
>> > \component[chapter-7]
>> > \component[chapter-8]
>> > \component[chapter-9]
>> > \component[chapter-10]
>> > \component[chapter-11]
>> > \component[chapter-12]
>> > \component[chapter-13]
>> > \component[chapter-14]
>> > \stopbodymatter
>> > \stopproduct
>>
>> —
>> Taco Hoekwater E: taco@bittext.nl
>> genderfluid (all pronouns)
>>
>>
>>
>> ___________________________________________________________________________________
>> 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: 5614 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
___________________________________________________________________________________
next prev parent reply other threads:[~2024-04-25 21:15 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 [this message]
2024-04-26 7:20 ` Taco Hoekwater
2024-04-26 8:32 ` Aditya Mahajan
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='CACyK-eqHs_DJwV=5HGvOQwH3jgqk0f44Ewiar_B8o4YEO83ySA@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).