Subscript in HTML using Mathjax



It is possible to render subscript in mathemetical equation using underscore _ in mathjax. You can use multiple levels of subscript.


<html>
<head>
<title>Reference Rendering division in HTML </title>
<script type="text/javascript"
  src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
MathJax.Hub.Config({
  tex2jax: {
    inlineMath: [['$','$']],
    preview: ["[math]"],
    processEscapes: true
  }
});
 </script>


</head>
<body>
/* Referencedesigner.com Mathjax tutorial - Subscript */

A simple equation showing usage of subscript

<br />
$$x_1 +x_2+ x_3 = 43 $$
<br />

You can use curly brackets to render subscript so length  more than 1 character. 
<br /><br />
$$x_{i1}$$
<br /><br />
You will also have to use curly bracket to render sub subscript. 
<br /><br />
$$x_{i_2}$$
<br />

Notice that x_i_2 in above will render error.

<br /><br />
Subscripts can be combined with superscript as in 
<br /><br />
$$x_i^2$$
<br /><br />
Aubscripts can also be applied before a literal as in 
<br /><br />
$$_bx^c$$

</body>
</html>



Try this example here. and see subscript using _ works.

Exercises


1. Render the following using Mathjax ( Use the above example and make changes into it.)

$x_i^2+y_i^2=z_i^2 $