Bernhard Rosensteiner wrote:
deleting the \def\Mycolor line does not help - same result.

No, that would definitely not help. Your problem was not the
definition, but that you never actually called the macro.

You should put the definition back, and add  \Mycolor to the
\OpticalTest macro, perhaps like so:

\def\OpticalTest[#1]#2{%
        \addff{\OOFeature}%
        \definedfont[#2 at \OOSize]%
         \setupinterlinespace
        \hbox to \textwidth{\clip[width=.39\textwidth,
                                  bottomoffset=\strutdepth]{%
          \Mycolor
          ..\hbox to .39\textwidth etc. etc.


best regards
Bernhard



Am 05.06.2010 um 14:34 schrieb Taco Hoekwater:

Bernhard Rosensteiner wrote:
Hello all,
in the process of learning macro programming in context i encountered the 
following problem (minimal example is attached):
When i have \setuphead[section][color={red}] the color key influences in a 
strange way my „novice macro“ (see the text which should be black but is red). 
Further more the \ruledhbox in my macro stops at some point the red color (with 
a normal \hbox all the text in the section is red). what i´m doing wrong here? 
I don’t expect such a behaviour
Somewhere you should execute \Mycolor, you are only defining it.

Best wishes,
Taco
___________________________________________________________________________________
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
___________________________________________________________________________________

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

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

Reply via email to