ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* changes of color
@ 2021-09-21 12:00 Thierry Horsin via ntg-context
  2021-09-21 13:09 ` fv leung via ntg-context
  0 siblings, 1 reply; 2+ messages in thread
From: Thierry Horsin via ntg-context @ 2021-09-21 12:00 UTC (permalink / raw)
  To: ntg-context; +Cc: Thierry Horsin

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: changes of color
  2021-09-21 12:00 changes of color Thierry Horsin via ntg-context
@ 2021-09-21 13:09 ` fv leung via ntg-context
  0 siblings, 0 replies; 2+ messages in thread
From: fv leung via ntg-context @ 2021-09-21 13:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: fv leung


[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-21 13:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-21 12:00 changes of color Thierry Horsin via ntg-context
2021-09-21 13:09 ` fv leung via ntg-context

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).