# [NTG-context] \mframed not aligned in mkiv

Tue Oct 22 19:44:19 CEST 2013

On Tue, 22 Oct 2013, Otared Kavian wrote:

>
>

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.