The enclose extension gives you access to the MathML <menclose> element for adding boxes, ovals, strikethroughs, and other marks over your mathematics. It defines the following non-standard macro:


Where notation is a comma-separated list of MathML <menclose> notations (e.g., circle, left, updiagonalstrike, longdiv, etc.), attributes are MathML attribute values allowed on the <menclose> element (e.g., mathcolor="red", mathbackground="yellow"), and math is the mathematics to be enclosed. See the MathML 3 specification for more details on <menclose>.

For example


This extension is loaded automatically when the autoload extension is used. To load the enclose extension explicitly, add '[tex]/enclose' to the load array of the loader block of your MathJax configuration, and add 'enclose' to the packages array of the tex block.

window.MathJax = {
  loader: {load: ['[tex]/enclose']},
  tex: {packages: {'[+]': ['enclose']}}

Alternatively, use \require{enclose} in a TeX expression to load it dynamically from within the math on the page, if the require extension is loaded.

enclose Commands

The enclose extension implements the following macros: \enclose