What preamble does math.stackexchange.com use?

As it has been already answered, math.SE uses MathJax in order to display math equations specified in a TeX notation.

It is possible to reuse codes from math.SE in your document, by loading the right packages. With a look into the math.SE source code, you can find the following line, which calls MathJaX:

<script type="text/javascript" 
    src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML">
</script>  

As you can read in the MathJaX Documentation, the TeX-AMS_HTML option "allows math to be specified in TeX or LaTeX notation, with the AMSmath and AMSsymbols packages included".

You should be able to reuse any equation from math.SE by loading amsmath and amssymb packages in your preamble:

\usepackage{amsmath}
\usepackage{amssymb}

It also works with Anki: in Anki2, go into the Option button in the Manage note types dialog, and add those two packages in the preamble. In Anki1, you can change the preamble in Settings > Deck Properties.


enter image description here

Installing and Testing MathJax

The easiest way to use MathJax is to link directly to the MathJax distributed network service (see Using the MathJax CDN). In that case, there is no need to install MathJax yourself, and you can begin using MathJax right away; skip this document on installation and go directly to Configuring MathJax.

MathJax can be loaded from a public web server or privately from your hard drive or other local media. To use MathJax in either way, you will need to obtain a copy of MathJax. There are three ways to do this: via git, svn, or via a pre-packaged archive. We recommend git or svn, as it is easier to keep your installation up to date with these tools.

...

More details, visit MathJax.

Tags:

Anki

Preamble