Using Math Equation with Jekyll

Reading time ~1 minute

I have tried both MathJax and KaTex. It seems that MathJax works seamlessly with my current website.

KaTex

  • Xu Cheng provides a nice comparison between MathJax and KaTex . However, it is not the clear for beginners like me to configure it correctly within Jekyll.
  • WillDrevo provides a more detailed instruction on how to using KaTex with Jekyll. This doesn’t work for me as well maybe because of the file structure under
    1
    ./public/
    
    folder and nothing changes after I placed the
    1
    .js
    
    and
    1
    .css
    
    files as required.

MathJax

The experiences on MathJax is less painful compared with KaTex. Gaston Sanchez lists every steps in adding MathJax to Jekyll but unfortunately it doesn’t work for me as well. In this end, this thread solves the problem by simply adding the following line to

1
_layouts/default.html

1
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>

in the section of

1
body
. And I can easily type a beautiful functions in my blog.

\[ \frac{Hello}{World^{2}} \]

Kernel Descriptor in Depth

Title| Kernel Descriptors for Visual Recognition-----|---------------------------------------------Conference|NIPS 2010Author |Liefeng...… Continue reading