Skip to content

Instantly share code, notes, and snippets.

@sophiebits
Created July 8, 2011 22:58
Show Gist options
  • Select an option

  • Save sophiebits/1073033 to your computer and use it in GitHub Desktop.

Select an option

Save sophiebits/1073033 to your computer and use it in GitHub Desktop.
MathJax.Hub.Config({
jax: ["input/TeX","output/HTML-CSS"],
extensions: ["tex2jax.js","MathMenu.js","MathZoom.js"],
TeX: {
extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"],
Augment: {
Definitions: {
macros: {
lrsplit: "LRSplit"
}
},
Parse: {
prototype: {
LRSplit: function( name ) {
var num = this.GetArgument( name ),
den = this.GetArgument( name );
var frac = MML.mfrac( TEX.Parse( '\\strut\\textstyle{'+num+'\\qquad}', this.stack.env ).mml(),
TEX.Parse( '\\strut\\textstyle{\\qquad '+den+'}', this.stack.env ).mml() );
frac.numalign = MML.ALIGN.LEFT;
frac.denomalign = MML.ALIGN.RIGHT;
frac.linethickness = "0em";
this.Push( frac );
}
}
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment