On 6/17/2016 7:48 AM, Aditya Mahajan wrote:
On Thu, 16 Jun 2016, Alan BRASLAU wrote:
On Thu, 16 Jun 2016 18:18:58 -0400 Aditya Mahajan
wrote: And some stage, it will be nice to discuss the possiblility of adding background to formulas, especially aligned formulas.
something like a
\setupformula [before={\startframedtext[background=color,backgroundcolor=lightblue]}, after={\stopframedtext}]
One typically wants to have a bounding box around the displayed math, but not the white space or the equation number. For example, see the attached image.
experimental framed support in beta ... \starttext \setupformulaframed[framecolor=red,frame=on,offset=1ex] \setupformula[option=frame,color=blue] \setupformula[numbercommand={\inframed[framecolor=green]}] \startplaceformula \startformula 2 + 2 = 3 + 1 \stopformula \stopplaceformula \stoptext see framed-002.tex in test suite for a bunch of examples (rather tricky with respect to spacing and alignments etc) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------