On Tue, 22 Oct 2013, Otared Kavian wrote:

Hi Aditya,

I wikified your remarks,

        
http://wiki.contextgarden.net/Math/Display#Shaded_background_for_part_of_a_displayed_equation

Rather than

\def\graymath{\mframed[frame=off,
    background=color,
    backgroundcolor=gray,
    backgroundoffset=3pt]}

you can just use:

\definemathframed[graymath]
   [
     frame=off,
     location=mathematics,
     background=color,
     ...,
   ]

This way, you can even override the options when using \graymath:

\graymath[backgroundcolor=red]{...}

but unfortunately the snippet of code does not compile on ConTeXt Garden: is 
there a way to typeset mkiv code there?

Using <context mode="mkiv"> compiles the coding using MkIV, but contextgarden uses a rather old version of mkiv, so it is unlikely that a feature introduced a few months ago will run on the garden.

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
___________________________________________________________________________________

Reply via email to