* 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
* Re: textcolor not working with MPinstance
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
0 siblings, 1 reply; 5+ messages in thread
From: Aditya Mahajan @ 2014-04-21 20:18 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Tue, 15 Apr 2014, Aditya Mahajan wrote:
> textcolor does not work any longer with MPinstance. Consider the following
> example from the wiki: http://wiki.contextgarden.net/Command/defineMPinstance
Is there any update on this? This bug breaks the visualcounter module.
I am including a smaller minimal example:
\defineMPinstance
[important]
[metafun]
[textcolor=red]
\starttext
\startMPcode{important}
draw textext("Am I red?") ;
\stopMPcode
\stoptext
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
* Re: textcolor not working with MPinstance
2014-04-21 20:18 ` Aditya Mahajan
@ 2014-04-21 20:47 ` Wolfgang Schuster
2014-04-24 7:44 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2014-04-21 20:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 21.04.2014 um 22:18 schrieb Aditya Mahajan <adityam@umich.edu>:
> On Tue, 15 Apr 2014, Aditya Mahajan wrote:
>
>> textcolor does not work any longer with MPinstance. Consider the following example from the wiki: http://wiki.contextgarden.net/Command/defineMPinstance
>
> Is there any update on this? This bug breaks the visualcounter module.
>
> I am including a smaller minimal example:
>
> \defineMPinstance
> [important]
> [metafun]
> [textcolor=red]
>
> \starttext
>
> \startMPcode{important}
> draw textext("Am I red?") ;
> \stopMPcode
>
> \stoptext
It fails also with the default instance:
\setupMPinstance
[textcolor=red,
textstyle=bold]
\starttext
\startMPcode
draw textext("Am I red?") ;
\stopMPcode
\stoptext
Wolfgang
___________________________________________________________________________________
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
* Re: textcolor not working with MPinstance
2014-04-21 20:47 ` Wolfgang Schuster
@ 2014-04-24 7:44 ` Hans Hagen
2014-04-24 17:01 ` Aditya Mahajan
0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2014-04-24 7:44 UTC (permalink / raw)
To: ntg-context
On 4/21/2014 10:47 PM, Wolfgang Schuster wrote:
>
> Am 21.04.2014 um 22:18 schrieb Aditya Mahajan <adityam@umich.edu>:
>
>> On Tue, 15 Apr 2014, Aditya Mahajan wrote:
>>
>>> textcolor does not work any longer with MPinstance. Consider the following example from the wiki: http://wiki.contextgarden.net/Command/defineMPinstance
>>
>> Is there any update on this? This bug breaks the visualcounter module.
>>
>> I am including a smaller minimal example:
>>
>> \defineMPinstance
>> [important]
>> [metafun]
>> [textcolor=red]
>>
>> \starttext
>>
>> \startMPcode{important}
>> draw textext("Am I red?") ;
>> \stopMPcode
>>
>> \stoptext
>
>
> It fails also with the default instance:
>
> \setupMPinstance
> [textcolor=red,
> textstyle=bold]
>
> \starttext
>
> \startMPcode
> draw textext("Am I red?") ;
> \stopMPcode
>
> \stoptext
fixed
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
* Re: textcolor not working with MPinstance
2014-04-24 7:44 ` Hans Hagen
@ 2014-04-24 17:01 ` Aditya Mahajan
0 siblings, 0 replies; 5+ messages in thread
From: Aditya Mahajan @ 2014-04-24 17:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Thu, 24 Apr 2014, Hans Hagen wrote:
> On 4/21/2014 10:47 PM, Wolfgang Schuster wrote:
>>
>> Am 21.04.2014 um 22:18 schrieb Aditya Mahajan <adityam@umich.edu>:
>>
>>> On Tue, 15 Apr 2014, Aditya Mahajan wrote:
>>>
>>>> textcolor does not work any longer with MPinstance. Consider the
>>>> following example from the wiki:
>>>> http://wiki.contextgarden.net/Command/defineMPinstance
>>>
>>> Is there any update on this? This bug breaks the visualcounter module.
>>>
>>> I am including a smaller minimal example:
>>>
>>> \defineMPinstance
>>> [important]
>>> [metafun]
>>> [textcolor=red]
>>>
>>> \starttext
>>>
>>> \startMPcode{important}
>>> draw textext("Am I red?") ;
>>> \stopMPcode
>>>
>>> \stoptext
>>
>>
>> It fails also with the default instance:
>>
>> \setupMPinstance
>> [textcolor=red,
>> textstyle=bold]
>>
>> \starttext
>>
>> \startMPcode
>> draw textext("Am I red?") ;
>> \stopMPcode
>>
>> \stoptext
>
> fixed
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).