Mathematics tools

Install Katex for moodle Math rendering

Picture of dnyaneshwar somwanshi
Install Katex for moodle Math rendering

I am new to moodle . But I google out that Katex for math rendering is faster than mathjax .

Katex .Comparison with mathjax with help of 

Speed Test

So I  want to know can I use Katex with moodle. And if it is yes   then how?

Average of ratings: -
Picture of Daniel Thies
Re: Install Katex for moodle Math rendering
Group Core developersGroup Particularly helpful MoodlersGroup Plugin developersGroup Testers

Speed is not everything. MathJax has some features that KaTeX does not. In particular it is more accessible. The speed test page above exaggerates the speed difference. On more practical pages the difference is not as noticeable.

However, If you are interested in trying KaTeX in Moodle 2.8+, you can use the following procedure. Go to Site administration -> Appearance -> Additional HTML. In the box Within HEAD put

<link rel="stylesheet" href="" integrity="sha384-B41nY7vEWuDrE9Mr+J2nBL0Liu+nl/rBXTdpQal730oTHdlrlXHzYMOhDU60cwde" crossorigin="anonymous">

In Before BODY is closed include

<script src="" integrity="sha384-L9gv4ooDLrYwW0QCM6zY3EKSSPrsuUncpx26+erN0pJX4wv1B1FzVW1SvpcJPx/8" crossorigin="anonymous"></script>
var texpreviews = document
for (var i = 0; i < texpreviews.length; i++) {

Then enable the TeX notation filter and disable MathJax filter. TeX expressions will be filtered and displayed as images first by the TeX notation filter. KaTeX will then replace the images with its display.

Average of ratings: -