Website Content

Creating Mathematics Using LaTeX

In order to create Math Content using LaTeX, install any of the software or any LaTeX Editor and then follow the steps below :

  1. Using any of the software create your Math equation in the software's interface.

  2. Create a folder MathJax on the server hosting your website. Install the MathJax Package in that folder. Add the following code in the head section of your webpage.
    <script type="text/javascript" src="MathJax/MathJax.js">
    MathJax.Hub.Config({      
    config: ["MMLorHTML.js"],      
    extensions: ["tex2jax.js"],      
    jax: ["input/TeX"],      
    tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}    
    });  
    </script>
  3. In your webpage's HTML code, paste the LaTeX code generated for your equation between two $ operators.
    Example:
    Volume of a Cone : $V = \frac{1}{3}{\pi}{r^2}{h}$

An example of math content written in LaTeX and displayed with the MathJax plugin

Note: MathJax in conjuntion with MathPlayer in Internet Explorer allows the user to enlarge and hear the math content.