less than 1 minute read

MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX", "output/HTML-CSS"],
    tex2jax: {
      inlineMath: [ ["\\(","\\)"] ],
      displayMath: [ ["\\[","\\]"] ],
      processEscapes: true
    },
    TeX: {
        Macros: {
          mbb: ["\\mathbb{#1}",1],
          mbf: ["\\mathbf{#1}",1],
          mcal: ["\\mathcal{#1}",1],
          mfk: ["\\mathfrak{#1}",1],
          eps: "\\varepsilon", // The better Epsilon
          N: "\\mathbb{N}", // Natural Numbers
          Z: "\\mathbb{Z}", // Integers
          Q: "\\mathbb{Q}", // Rational Numbers
          R: "\\mathbb{R}", // Real Numbers
          C: "\\mathbb{C}", // Complex Numbers
          F: "\\mathbb{F}", // Arbitrary Field
          bB: "\\mathbb{B}", // Ball in Metric Space (needs to be separately defined)
          set: ["\\{ #1 \\}",1], // Normal Brackets Set
          Set: ["\\left\\{ #1 \\right\\}",1], // Dynamically Scaled Brackets Set
          setbar: ["\\middle\\mid"], // Bar for Dynamically Scaled Brackets Set
          func: ["#1 \\colon #2 \\to #3",3], // Function/Mapping
          floor: ["\\left\\lfloor #1 \\right\\rfloor",1], // Floor/Greatest Integer Function
          ceil: ["\\left\\lceil #1 \\right\\rceil",1], // Ceiling Function
          // Abstract Algebra Specific
          pos: "\\mathrm{pos}" // Multiplicative groups of positive Q and R
        },
        equationNumbers: { autoNumber: "AMS" },
        extensions: ["AMSmath.js", "AMSsymbols.js"] // there is also "AMScd.js"
    },
    "HTML-CSS": { availableFonts: ["TeX"] }
  });

Note: This is the code currently used to configure MathJax on this website. This page automatically fetches the code and accurately reflects the current configuration in real time. For more information, see this post.