[NTG-context] \mframed not aligned in mkiv

Aditya Mahajan adityam at umich.edu
Tue Oct 22 19:44:19 CEST 2013


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


More information about the ntg-context mailing list