Skip to content

Instantly share code, notes, and snippets.

@atenni
Last active December 17, 2015 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atenni/5606909 to your computer and use it in GitHub Desktop.
Save atenni/5606909 to your computer and use it in GitHub Desktop.
Marked.app header to make MathJax automatically number equations.
XHTML Header: <script type="text/x-mathjax-config">
  MathJax.Hub.Config({ TeX: { equationNumbers: {autoNumber: "AMS"} } });
</script>

When included as the first line in a Marked document, the following equation will be automatically numbered:

\begin{equation}
    E = mc^2
\end{equation}

…but this one will not:

$$ E = mc^2 $$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment