Displaying Mathematics

While html caters for simple mathematical symbols like these ∇² = φ. It doesn’t really make much sense to code ∇² to get ∇² ; nor to pre-type your mathematical symbols in a word doc or LaTex editor and convert to image or pdf. Not to mention, needing to deal with multiple line equations using HTML. You can display mathematics on blogs@NTU as follows :-

Jetpack

This plugin is already network activated so you can embed LaTex equations directly into your postings or pages by enclosing your LaTex codes between latex_1. You can also adjust the size of the LaTex font to blend in with your other text. The downside is that it does not allow for multiple line equations and alignment of all my “equals” elegantly.

Let X_1, X_2, \ldots, X_n be a sequence of independent and identically distributed random variables with {E}[X_i] = \mu and {Var}[X_i] = \sigma^2 < \infty, and let S_n = \frac{X_1 + X_2 + \cdots + X_n}{n} = \frac{1}{n}\sum_{i}^{n} X_i denote their mean. Then as n approaches infinity, the random variables \sqrt{n}(S_n - \mu) converge in distribution to a normal \mathcal{N}(0, \sigma^2). i\hbar\frac{\partial}{\partial t}\left|\Psi(t)\right>=H\left|\Psi(t)\right> {Var}[X_i] = \sigma^2 < \infty

For example, the above latex writing in latex_2 is shown as X_1, X_2, \ldots, X_n. You might have noticed from the above example that the mathematical text generated by Jetpack’s “Beautiful Maths” lays over a white background. This might cause a glaring mismatch if your theme does not have a white background.

Code Codes HTML LaTeX equation Editor

For typing mathematical equations via comments, I recommend going to codecogs.com to convert latex into GIF on the fly. Below is a screenshot of what is looks like after I typed in LaTex equations in editing box.

codecogs

It provides you an option to convert the inputted equations to HTML, URL, LaTex, PRE, TiddlyWiki, phpBB or WordPress. Below is an example of the earlier generated equation that was converted in gif.

Skip to toolbar