Difference between revisions of "Command/definemathframed"
< Command
Jump to navigation
Jump to search
(Created page with "Documentation for \definemathframed") |
|||
(One intermediate revision by the same user not shown) | |||
Line 30: | Line 30: | ||
location=mathematics, | location=mathematics, | ||
background=color, | background=color, | ||
− | backgroundcolor= | + | backgroundcolor=lightyellow, |
− | backgroundoffset= | + | backgroundoffset=1pt |
] | ] | ||
\starttext | \starttext |
Latest revision as of 21:50, 11 May 2024
Contents
\definemathframed
Summary
The command \definemathframed is used to color the background of a part of a displayed equation.
Settings
\definemathframed[...][...][...=...,...] | |
[...] | name |
[...] | name |
...=...,... | inherits from \setupmathframed |
Description
Examples
Example 1
\setuppapersize[A5] \definemathframed[graymath] [ frame=off, location=mathematics, background=color, backgroundcolor=lightyellow, backgroundoffset=1pt ] \starttext 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)$. \stoptext