Skip to content

Instantly share code, notes, and snippets.

@pkra
Created January 2, 2015 21:41
Show Gist options
  • Save pkra/e1de4f9d761ad0ac69f9 to your computer and use it in GitHub Desktop.
Save pkra/e1de4f9d761ad0ac69f9 to your computer and use it in GitHub Desktop.
mathjax custom configuration test (mathjax-user group question)
window.MathJax = {
jax: ["input/TeX", "output/HTML-CSS"],
extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js",
"TeX/noUndefined.js"],
TeX: {
Macros: {
RR: '{\\bf R}',
bold: ['{\\bf #1}', 1],
pd: ["{\\frac{\\partial #1}{\\partial #2}}",2],
// etc....
}
},
tex2jax: {
inlineMath: [ ["\\(","\\)"],['$','$'] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"], ["\\begin{displaymath}","\\end{displaymath}"] ],
skipTags: ["script","noscript","style","textarea","pre","code"],
ignoreClass: "tex2jax_ignore",
processEscapes: false,
processEnvironments: true,
preview: "TeX"
},
showProcessingMessages: true,
displayAlign: "center",
displayIndent: "2em",
"HTML-CSS": {
scale: 100,
availableFonts: ["STIX","TeX"],
preferredFont: "TeX",
webFont: "TeX",
imageFont: "TeX",
showMathMenu: true,
},
MMLorHTML: {
prefer: {
MSIE: "MML",
Firefox: "MML",
Opera: "HTML",
other: "HTML"
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment