Skip to content

Instantly share code, notes, and snippets.

@Thell
Created April 9, 2014 23:57
Show Gist options
  • Save Thell/10331468 to your computer and use it in GitHub Desktop.
Save Thell/10331468 to your computer and use it in GitHub Desktop.
Pandoc Mathjax Test Doc
---
title: "Pandoc MathTest"
author: "Thell"
date: "04/09/2014"
output:
html_document: default
pdf_document:
pandoc_args: --tex-escape-outer-math
---
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
TeX: {
TagSide: "right",
equationNumbers: { autoNumber: "AMS" }
}
});
</script>
$$\text{A test of Equation Numbering}$$
* * *
Equation:
$$
\begin{equation}
E = mc^2
\end{equation}
$$
Equation*:
$$
\begin{equation*}
E = mc^2
\end{equation*}
$$
* * *
Brackets:
\[E = mc^2\]
Brackets tagged:
\[E = mc^2\tag{x}\]
* * *
Split:
$$
\begin{equation}
\begin{split}
a& =b+c-d\\
& \quad +e-f\\
& =g+h\\
& =i
\end{split}
\end{equation}
$$
* * *
Multline:
$$
\begin{multline}
a+b+c+d+e+f+g\\
M+N+O+P+Q\\
R+S+T\\
u+v+w+x+y+z
\end{multline}
$$
Multline*:
$$
\begin{multline*}
a+b+c+d+e+f+g\\
M+N+O+P+Q\\
R+S+T\\
u+v+w+x+y+z
\end{multline*}
$$
* * *
Gather:
$$
\begin{gather}
a_1=b_1+c_1\\
a_2=b_2+c_2-d_2+e_2
\end{gather}
$$
Gather*:
$$
\begin{gather*}
a_1=b_1+c_1\\
a_2=b_2+c_2-d_2+e_2
\end{gather*}
$$
* * *
Align:
$$
\begin{align}
a_1& =b_1+c_1\\
a_2& =b_2+c_2-d_2+e_2
\end{align}
$$
Align*:
$$
\begin{align*}
a_1& =b_1+c_1\\
a_2& =b_2+c_2-d_2+e_2
\end{align*}
$$
Align:
$$
\begin{align}
a_{11}& =b_{11}& a_{12}& =b_{12}\\
a_{21}& =b_{21}& a_{22}& =b_{22}+c_{22}
\end{align}
$$
Align with \\notag and \\tag:
$$
\begin{align}
a_{11}& =b_{11}& a_{12}& =b_{12}\notag\\
a_{21}& =b_{21}& a_{22}& =b_{22}+c_{22} \tag{y}
\end{align}
$$
Align* with \\tag:
$$
\begin{align*}
a_1& =b_1+c_1\tag{z}\\
a_2& =b_2+c_2-d_2+e_2
\end{align*}
$$
* * *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment