ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* textcolor not working with MPinstance
@ 2014-04-15 22:33 Aditya Mahajan
  2014-04-21 20:18 ` Aditya Mahajan
  0 siblings, 1 reply; 5+ messages in thread
From: Aditya Mahajan @ 2014-04-15 22:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

textcolor does not work any longer with MPinstance. Consider the following 
example from the wiki: 
http://wiki.contextgarden.net/Command/defineMPinstance


\defineMPinstance
   [important]
   [metafun] % needs to be inherited from the global metafun instance
   [textcolor=red]

\defineMPinstance
   [veryimportant]
   [important]
   [textstyle=bold]

\starttext

% normal black text
\startMPcode
   draw textext("some text") ;
\stopMPcode

% red text
\startMPcode{important}
   draw textext("some text") ;
\stopMPcode

% red bold text
\startMPcode{veryimportant}
   draw textext("some text") ;
\stopMPcode

% a graphic that uses a custom instance
% This does not work with the current stable version
\startuseMPgraphic{veryimportant::mygraphic}
   draw textext("some text") ;
\stopuseMPgraphic

\useMPgraphic{veryimportant::mygraphic}

\stoptext


Thanks,
Aditya
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2014-04-24 17:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-15 22:33 textcolor not working with MPinstance Aditya Mahajan
2014-04-21 20:18 ` Aditya Mahajan
2014-04-21 20:47   ` Wolfgang Schuster
2014-04-24  7:44     ` Hans Hagen
2014-04-24 17:01       ` Aditya Mahajan

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