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