Including mathematical equations like pro

We all need to include mathematical equations in our reports or while presenting our work. The decent way to complete this job is to use MathJax lib in your project. MathJax lib helps to render the mathematical numerials and complex equation in jiffy.

First step is to enable MathJax in your layouts

Add this line to your _layouts/default.html
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
  tex2jax: {
    inlineMath: [['$','$'], ['\\(','\\)']],
    processEscapes: true
  }
});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>

Using Latex

After this we need to TWO dollar signs for most Latex, to keep kramdown from failing to render.

Example

Latex: $$a^2 + b^2 = c^2$$

Output => Latex:

Complex equations: $$\int e^{-kx} \, dx = -\frac{1}{k} e^{-kx}$$

Complex equation