Mathjax & Latex sample
- Post by: admin
- May 6, 2021
Content of article
This is a sample file showing you how to use jsMath to display mathematics in your web pages. Most of the work is done by javascript files in a central location. There is a tex2jax extension that will use the presence of dollar signs in your page to identify mathematical content. This is usually set to ignore single dollar signs, as in $(-b\pm\sqrt{b^2-4ac})/2a$, but to render it as math if double dollar signs are used, as in $$ -b\pm\sqrt{b^2-4ac}\over 2a $$
You can also use LaTeX conventions to mark the mathematical content, so you can get in-line math, as in \((-b\pm\sqrt{b^2-4ac})/2a\), or in the display defining the Laplace transform: \[ {\scr L}(f)(s)=F(s)=\int_0^\infty f(t)e^{-st}\,dt. \]
Try these constructions with all simple mathematical content that you want to add to web page. This is no substitute for complete \(\TeX\) documents prepared as pdf files, but it is easy to use to add simple expressions to your pages.
If you right-click on any of the math on this page, you will get a pop-up menu allowing you to view the source and giving more information about MathJax.