cancel
The cancel extension implements the cancel package from LaTeX,
which provides a means of “crossing out” sub-expressions in various
ways. See the cancel CTAN page for
more information and documentation. See also the enclose
extension for some alternative approaches to crossing out
sub-expressions.
This package defines the following macros:
- \cancel{math}
Strikeout
mathfrom lower left to upper right.
- \bcancel{math}
Strikeout
mathfrom upper left to lower right.
- \xcancel{math}
Strikeout
mathwith an “X”.
- \cancelto{value}{math}
Strikeout
mathwith an arrow going tovalue.
Some examples are as follow:
This extension is loaded automatically when the autoload
extension is used. To load the cancel extension explicitly, add
'[tex]/cancel' to the load array of the loader
block of your MathJax configuration, and add 'cancel' to the
packages array of the tex block.
window.MathJax = {
loader: {load: ['[tex]/cancel']},
tex: {packages: {'[+]': ['cancel']}}
};
Alternatively, use \require{cancel} in a TeX expression to load it
dynamically from within the math on the page, if the require
extension is loaded.
cancel Commands
The cancel extension implements the following macros:
\bcancel, \cancel, \cancelto, \xcancel