</context>
In mkiv the code is slightly different: one has to introduce may define {{cmd|mcframedgraymath}} instead of directly using {{cmd|mframeddefinemathframed}}
<context source="yes"tex>\starttext
\setuppapersize[A5]
\definemathframed[mcframedgraymath] [location=mathematics]\def\graymath{\mcframed[ frame=off, location=mathematics,
background=color,
backgroundcolor=lightgray,
backgroundoffset=2pt ] Since for $|x| < 1$ we have\startformula\log(1+x) = \graymath{x- \displaystyle{x^2\over2}} + {x^3 \over 3} + \cdots\stopformulawe may write $\log(1+x) = x + O(x^2)$.\stoptext</tex> The result is shown below (possibly the framed part of the formula is not aligned correctly with the remainder of the formula because the mkiv engine on Context Garden is not up to date…). <context mode=mkiv>\setuppapersize[A5]\definemathframed[graymath] [ frame=off, location=mathematics, background=color, backgroundcolor=lightgray, backgroundoffset=2pt ]
Since for $|x| < 1$ we have