If you add this code
MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
var TEX = MathJax.InputJax.TeX;
var MML = MathJax.ElementJax.mml;
TEX.Definitions.macros.cancel =
["myCancel",MML.NOTATION.UPDIAGONALSTRIKE];
TEX.Definitions.macros.bcancel =
["myCancel",MML.NOTATION.DOWNDIAGONALSTRIKE];
TEX.Parse.Augment({
myCancel: function (name,notation) {
var mml = this.ParseArg(name);
this.Push(MML.menclose(mml).With({notation:notation}));
}
});
});
just after the MathJax.Hub.Config() call (either in-line or in your
config/MathJax.js file), this will define \cancel and \bcancel. See
if that works for you. Unfortunately, there is no current way to get
cancelation arrows (the MathML for that hasn't been implemented yet in
MathJax, but will be in the future).
Davide
Davide
\color{red}{\cancel{\color{black}{...}}}
You can define a macro to do this, as in
\def\colorcancel#1#2{\color{#1}{\cancel{\color{black}{#2}}}}
which you can add to the TeX block of your configuration:
TeX: {
Macros: {
colorcancel: ["\\color{#1}{\\cancel{\\color{black}{#2}}}",2]
}
}
Davide
--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.