Showing posts with label html. Show all posts
Showing posts with label html. Show all posts

Tuesday, September 17, 2019

MathJax example 2

Testing MathJax Example 2 (autonumbering) This is the test of equation \ref{num1} (but ( eqref(num1) )\eqref{num1} also works) \begin{equation} \sqrt{b^2} = \pm b \label{num1} \end{equation} In equation \eqref{eq:sample}, we find the value of an interesting integral: \begin{equation} \int_0^\infty \frac{x^3}{e^x-1}\,dx = \frac{\pi^4}{15} \label{eq:sample} \end{equation}

<head> 
  <title>Testing MathJax Example 2 (autonumbering)</title>
  <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
  <script>
  MathJax = {
    tex: {
      tags: 'ams'  // should be 'ams', 'none', or 'all'
    }
  };
  </script>
  <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
</head>

<body>
This is the test of equation \ref{num1} (but  ( eqref(num1) )\eqref{num1} also works)
\begin{equation}
  \sqrt{b^2} = \pm b 
  \label{num1}
\end{equation}

In equation \eqref{eq:sample}, we find the value of an
interesting integral:

\begin{equation}
  \int_0^\infty \frac{x^3}{e^x-1}\,dx = \frac{\pi^4}{15} 
  \label{eq:sample}
\end{equation}


<hr>

Wednesday, September 11, 2019

MathJax example with Latex

MathJax TeX Test Page This is the text \begin{equation} \sqrt{b^2} \end{equation}
<html>
<head>
<title>MathJax TeX Test Page</title>

<script>
MathJax = {
  tex: {
    inlineMath: [['$', '$'], ['\\(', '\\)']]
  },
  svg: {
    fontCache: 'global'
  }
};
</script>
<script type="text/javascript" id="MathJax-script" async
  src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js">
</script>


</head>
<body>
This is the text
\begin{equation}
\sqrt{b^2}
\end{equation}
</body>




</html>