MathJax形式のコードと出力

行列のコード:

<!DOCTYPE html>
<html>
<head>
  <script type="text/javascript" async
    src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
  </script>
</head>
<body>
  <p>行列の例:</p>
  <p>$$
  \begin{pmatrix}
  a_{11} & a_{12} & \dots & a_{1n} \\
  a_{21} & a_{22} & \dots & a_{2n} \\
  \vdots & \vdots & \ddots & \vdots \\
  a_{m1} & a_{m2} & \dots & a_{mn}
  \end{pmatrix}
  $$</p>
</body>
</html>

行列のMathJax出力:

行列の例:

$$ \begin{pmatrix} a_{11} & a_{12} & \dots & a_{1n} \\ a_{21} & a_{22} & \dots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{m1} & a_{m2} & \dots & a_{mn} \end{pmatrix} $$

積分のコード:

<!DOCTYPE html>
<html>
<head>
  <script type="text/javascript" async
    src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
  </script>
</head>
<body>
  <p>積分の例:</p>
  <p>$$
  \int_a^b f(x) \, dx = F(b) - F(a)
  $$</p>
</body>
</html>

積分のMathJax出力:

積分の例:

$$ \int_a^b f(x) \, dx = F(b) - F(a) $$