MediaWiki:Common.js: Difference between revisions

From stacky wiki
(Created page with "window.MathJax = { tex: { inlineMath: [['$', '$'], ['\\(', '\\)']] }, svg: { fontCache: 'global' } }; (function () { var script = document.createElement('sc...")
 
No edit summary
 
Line 1: Line 1:
window.MathJax = {
window.MathJax = {
   tex: {
   tex: {
     inlineMath: [['$', '$'], ['\\(', '\\)']]
     inlineMath: [['$', '$'], ['\\(', '\\)']],
    macros: {
        href: "{}",
        AA: "\\mathbb{A}",
        CC: "\\mathbb{C}",
        EE: "\\mathbb{E}",
        FF: "\\mathbb{F}",
        GG: "\\mathbb{G}",
        HH: "\\mathbb{H}",
        NN: "\\mathbb{N}",
        PP: "\\mathbb{P}",
        QQ: "\\mathbb{Q}",
        RR: "\\mathbb{R}",
        SS: "\\mathbb{S}",
        TT: "\\mathbb{T}",
        VV: "\\mathbb{V}",
        ZZ: "\\mathbb{Z}",
        W: "\\mathcal{W}",
        X: "\\mathcal{X}",
        Y: "\\mathcal{Y}",
        Z: "\\mathcal{Z}",
      },
   },
   },
   svg: {
   svg: {
    fontCache: 'global'
          fontCache: 'global'
  }
        }
};
};



Latest revision as of 16:05, 11 January 2021

window.MathJax = {
  tex: {
    inlineMath: [['$', '$'], ['\\(', '\\)']],
    macros: {
        href: "{}",
        AA: "\\mathbb{A}",
        CC: "\\mathbb{C}",
        EE: "\\mathbb{E}",
        FF: "\\mathbb{F}",
        GG: "\\mathbb{G}",
        HH: "\\mathbb{H}",
        NN: "\\mathbb{N}",
        PP: "\\mathbb{P}",
        QQ: "\\mathbb{Q}",
        RR: "\\mathbb{R}",
        SS: "\\mathbb{S}",
        TT: "\\mathbb{T}",
        VV: "\\mathbb{V}",
        ZZ: "\\mathbb{Z}",
        W: "\\mathcal{W}",
        X: "\\mathcal{X}",
        Y: "\\mathcal{Y}",
        Z: "\\mathcal{Z}",
      },
  },
  svg: {
          fontCache: 'global'
        }
};

(function () {
  var script = document.createElement('script');
  script.src = 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js';
  script.async = true;
  document.head.appendChild(script);
})();