ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* colored labels in mp
@ 2009-03-27 12:37 Eythan Weg
  2009-03-27 12:45 ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Eythan Weg @ 2009-03-27 12:37 UTC (permalink / raw)
  To: ntg-context



Hi, the following does not seem to use color.  Am
I missing something?  Never used this feature
before...

I use mkiv with luatex 0.36.

\startMPcode
draw  thelabel(btex RED  etex, (0,0))  withcolor blue;
\stopMPcode
\stoptext


Thanks, Eythan 


___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: colored labels in mp
  2009-03-27 12:37 colored labels in mp Eythan Weg
@ 2009-03-27 12:45 ` Wolfgang Schuster
  2009-03-27 12:58   ` Lutz Haseloff
  2009-03-27 16:43   ` Eythan Weg
  0 siblings, 2 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2009-03-27 12:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 27.03.2009 um 13:37 schrieb Eythan Weg:

> Hi, the following does not seem to use color.  Am
> I missing something?  Never used this feature
> before...
>
> I use mkiv with luatex 0.36.
>
> \startMPcode
> draw  thelabel(btex RED  etex, (0,0))  withcolor blue;

label(\textext{\red RED},origin) ;

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: colored labels in mp
  2009-03-27 12:45 ` Wolfgang Schuster
@ 2009-03-27 12:58   ` Lutz Haseloff
  2009-03-27 13:04     ` Wolfgang Schuster
  2009-03-27 13:10     ` Thomas A. Schmitz
  2009-03-27 16:43   ` Eythan Weg
  1 sibling, 2 replies; 8+ messages in thread
From: Lutz Haseloff @ 2009-03-27 12:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1242 bytes --]

2009/3/27 Wolfgang Schuster <schuster.wolfgang@googlemail.com>

>
> Am 27.03.2009 um 13:37 schrieb Eythan Weg:
>
>  Hi, the following does not seem to use color.  Am
>> I missing something?  Never used this feature
>> before...
>>
>> I use mkiv with luatex 0.36.
>>
>> \startMPcode
>> draw  thelabel(btex RED  etex, (0,0))  withcolor blue;
>>
>
> label(\textext{\red RED},origin) ;
>
gives:

Undefined control sequence.
<argument> label(\textext
                          {\red RED},origin) ;
\processMPgraphic ...zations ;\theMPrandomseed ;#1
                                                  ;\!!es , \@EA \@EA \@EA
\!...
l.7 \stopMPcode


but

label(\sometxt{\blue RED},origin) ;

works here


Greetings Lutz

>
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2516 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: colored labels in mp
  2009-03-27 12:58   ` Lutz Haseloff
@ 2009-03-27 13:04     ` Wolfgang Schuster
  2009-03-27 13:10     ` Thomas A. Schmitz
  1 sibling, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2009-03-27 13:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 27.03.2009 um 13:58 schrieb Lutz Haseloff:

> label(\sometxt{\blue RED},origin) ;
>
> works here

label(textext("\blue RED"),origin) ;

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: colored labels in mp
  2009-03-27 12:58   ` Lutz Haseloff
  2009-03-27 13:04     ` Wolfgang Schuster
@ 2009-03-27 13:10     ` Thomas A. Schmitz
  1 sibling, 0 replies; 8+ messages in thread
From: Thomas A. Schmitz @ 2009-03-27 13:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On Mar 27, 2009, at 1:58 PM, Lutz Haseloff wrote:

>
>
> 2009/3/27 Wolfgang Schuster <schuster.wolfgang@googlemail.com>
>
> Am 27.03.2009 um 13:37 schrieb Eythan Weg:
>
>
> Hi, the following does not seem to use color.  Am
> I missing something?  Never used this feature
> before...
>
> I use mkiv with luatex 0.36.
>
> \startMPcode
> draw  thelabel(btex RED  etex, (0,0))  withcolor blue;
>
> label(\textext{\red RED},origin) ;
> gives:
>
> Undefined control sequence.
> <argument> label(\textext
>                           {\red RED},origin) ;
> \processMPgraphic ...zations ;\theMPrandomseed ;#1
>                                                   ;\!!es , \@EA \@EA  
> \@EA \!...
> l.7 \stopMPcode


I think what Wolfgang meant was

label(textext("\red RED"), origin)

Thomas
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: colored labels in mp
  2009-03-27 12:45 ` Wolfgang Schuster
  2009-03-27 12:58   ` Lutz Haseloff
@ 2009-03-27 16:43   ` Eythan Weg
  2009-03-27 17:17     ` Wolfgang Schuster
  2009-03-27 17:38     ` Hans Hagen
  1 sibling, 2 replies; 8+ messages in thread
From: Eythan Weg @ 2009-03-27 16:43 UTC (permalink / raw)
  To: ntg-context


Wolfgang Schuster <schuster.wolfgang@googlemail.com>
Fri, 27 Mar 2009 13:45:42 +0100

   Am 27.03.2009 um 13:37 schrieb Eythan Weg:
   
   > Hi, the following does not seem to use color.  Am
   > I missing something?  Never used this feature
   > before...
   >
   > I use mkiv with luatex 0.36.
   >
   > \startMPcode
   > draw  thelabel(btex RED  etex, (0,0))  withcolor blue;
   
   label(\textext{\red RED},origin) ;
   
   Wolfgang
   
Basically, you moved it to TeX to do the coloring,
which is ok.

Now, "draw thelabel(btex RED etex, (0,0)) scaled 2;" works.  
In the same manner , I think,
"withcolor" should work.    At least this is my
understanding of the manual.  But instead it is
silently ignored.  So my question is whether it 
is a bug or not. 

This may not be a context's  issue but a metapost's itself.

Thanks,  Eythan 


___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: colored labels in mp
  2009-03-27 16:43   ` Eythan Weg
@ 2009-03-27 17:17     ` Wolfgang Schuster
  2009-03-27 17:38     ` Hans Hagen
  1 sibling, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2009-03-27 17:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 27.03.2009 um 17:43 schrieb Eythan Weg:

> Basically, you moved it to TeX to do the coloring,
> which is ok.

Metapost in MkIV is different from MkII and all labels are typeset
and colored in TeX, if you want a label use textext(...).

My \textext{...} (which is only defined in MkII) is just a TeX
wrapper and converts \textext{\blue RED} in textext("\blue RED")
and in MkIV btex ... etex is converted in textext(...) too.

> Now, "draw thelabel(btex RED etex, (0,0)) scaled 2;" works.
> In the same manner , I think,
> "withcolor" should work.    At least this is my
> understanding of the manual.  But instead it is
> silently ignored.  So my question is whether it
> is a bug or not.

What's written in the manual should work in MkII but a lot
of things are handled in a different like colors.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: colored labels in mp
  2009-03-27 16:43   ` Eythan Weg
  2009-03-27 17:17     ` Wolfgang Schuster
@ 2009-03-27 17:38     ` Hans Hagen
  1 sibling, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2009-03-27 17:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Eythan Weg wrote:
> Wolfgang Schuster <schuster.wolfgang@googlemail.com>
> Fri, 27 Mar 2009 13:45:42 +0100
> 
>    Am 27.03.2009 um 13:37 schrieb Eythan Weg:
>    
>    > Hi, the following does not seem to use color.  Am
>    > I missing something?  Never used this feature
>    > before...
>    >
>    > I use mkiv with luatex 0.36.
>    >
>    > \startMPcode
>    > draw  thelabel(btex RED  etex, (0,0))  withcolor blue;
>    
>    label(\textext{\red RED},origin) ;
>    
>    Wolfgang
>    
> Basically, you moved it to TeX to do the coloring,
> which is ok.
> 
> Now, "draw thelabel(btex RED etex, (0,0)) scaled 2;" works.  
> In the same manner , I think,
> "withcolor" should work.    At least this is my
> understanding of the manual.  But instead it is
> silently ignored.  So my question is whether it 
> is a bug or not. 
> 
> This may not be a context's  issue but a metapost's itself.

indeed tex does the coloring; also honoring mp's colors has been 
discussed on this list but fo rthe moment will nto be supported as it 
will complicate the code; maybe when i have redone the backend and when 
multiple pre/postscripts are supported (on the mplib agenda)

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2009-03-27 17:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-27 12:37 colored labels in mp Eythan Weg
2009-03-27 12:45 ` Wolfgang Schuster
2009-03-27 12:58   ` Lutz Haseloff
2009-03-27 13:04     ` Wolfgang Schuster
2009-03-27 13:10     ` Thomas A. Schmitz
2009-03-27 16:43   ` Eythan Weg
2009-03-27 17:17     ` Wolfgang Schuster
2009-03-27 17:38     ` Hans Hagen

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