随函附上
这个 enclose 扩展允许您访问mathml <menclose>
元素,用于在数学上添加方框、椭圆、删除线和其他标记。它定义了以下非标准宏:
- \\enclose{notation}[attributes]{math}
哪里
notation
是逗号分隔的MathML列表<menclose>
符号(例如,circle
,left
,updiagonalstrike
,longdiv
等),attributes
控件上是否允许MathML属性值<menclose>
元素(例如,mathcolor="red"
,mathbackground="yellow"
),以及math
是要封闭的数学。请参阅 MathML 3 specification 有关以下内容的更多详细信息<menclose>
。
例如
\enclose{circle}[mathcolor="red"]{x}
\enclose{circle}[mathcolor="red"]{\color{black}{x}}
\enclose{circle,box}{x}
\enclose{circle}{\enclose{box}{x}}
当 autoload 使用分机。装入 enclose 显式扩展,添加 '[tex]/enclose'
到 load
数组 loader
块的mathjax配置,并添加 'enclose'
到 packages
数组 tex
块。
window.MathJax = {
loader: {load: ['[tex]/enclose']},
tex: {packages: {'[+]': ['enclose']}}
};
或者,使用 \require{{enclose}}
在tex表达式中,从页面上的数学中动态加载它,如果 require 已加载扩展名。
包含命令
这个 enclose 扩展实现以下宏: \enclose