Changes

Jump to navigation Jump to search
575 bytes added ,  13:55, 22 October 2013
no edit summary
(see also [[Framed]])
To highlight part of a formula, you can give it a gray background using {{cmd|mframed}}: the following is the code you can use in mkii (see below what one has to do in mkiv):
<context source="yes">
\ln (1+x) =\, \graymath{x - {x^2\over2}} \,+ {x^3\over3}-\cdots.
\stopformula
</context>
 
In mkiv the code is slightly different: one has to introduce {{cmd|mcframed}} instead of {{cmd|mframed}}
 
<context source="yes">
\setuppapersize[A5]
\definemathframed[mcframed] [location=mathematics]
\def\graymath{\mcframed[frame=off,
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
\stopformula
we may write $\log(1+x) = x + O(x^2)$.
</context>
106

edits

Navigation menu