From: fv leung via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: fv leung <fvleung@gmail.com>
Subject: Re: changes of color
Date: Tue, 21 Sep 2021 21:09:55 +0800 [thread overview]
Message-ID: <CAN-yaTkpW-rywLQ+AjQrJasB5kWHw2hEn4A4FOANffxykQznpQ@mail.gmail.com> (raw)
In-Reply-To: <20210921115957.pvplzaz5r64tdein@thierry-Latitude-5300>
[-- Attachment #1.1: Type: text/plain, Size: 1640 bytes --]
\starttext
It seems that the problem comes up when the same color as the surrounding
text is used in MPcode.\par
{
\red
text red\par
\startMPcode
drawoptions(withcolor blue);
label("text blue in MPcode", origin);
\stopMPcode
\par
text still red\par
But\par
text red\par
\startMPcode
drawoptions(withcolor red);
label("text red in MPcode", origin);
\stopMPcode
\par
text turns black\par
Can get over with this:\par
text red\par
\startMPcode
drawoptions(withcolor red);
label("text red in MPcode", origin);
label("\null", origin); % add this seems to solve the problem
\stopMPcode
\par
text still red\par
Don't know why. Just an observation.
}
\stoptext
Thierry Horsin via ntg-context <ntg-context@ntg.nl> 於 2021年9月21日 週二
下午8:00寫道:
> Hi everybody
>
> After some part of a tex file where there is some startMPcode section the
> color of the text (e.g. blue) changes to black up until the next page in
> the pdf.
>
> Is there something I am missing ?
> Thank you.
> Thierry
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2538 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2021-09-21 13:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-21 12:00 Thierry Horsin via ntg-context
2021-09-21 13:09 ` fv leung via ntg-context [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=CAN-yaTkpW-rywLQ+AjQrJasB5kWHw2hEn4A4FOANffxykQznpQ@mail.gmail.com \
--to=ntg-context@ntg.nl \
--cc=fvleung@gmail.com \
/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).