まず,カスタムJSに次を記入 (参考 http://genkuroki.web.fc2.com/ ):
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ]
}
});
</script>
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML">
</script>
<meta http-equiv="X-UA-Compatible" CONTENT="IE=EmulateIE7" />
ここから実験
$x^2 + y^2 = 1$, \(a_1, a_2, \dots, a_n \)
どうもうまく行かない。
もう一度実験
$x^2 + y^2 = 1$, \(a_1, a_2, \dots, a_n \)
今度はうまく行った。うまく行かなかった式は,知らないうちに引用文のようなところに入っていた。これが原因だったようだ。display mathは,
\[\sum_{i=1}^n i = \frac{n(n+1)}{2},\]
$$
\begin{bmatrix}
a_{11} & a_{12} & \cdots & a_{1n}\\
a_{21} & a_{22} & \cdots & a_{2n}\\
\vdots & \vdots & \ddots & \vdots\\
a_{m1} & a_{m2} & \cdots & a_{mn}
\end{bmatrix}.
$$
これもうまく行った。