Skip to content Skip to sidebar Skip to footer

How Can I Replace Matjax Script With Katex Script On Blogger?

I have a website that is using many equations together with MathJax. Until now I found just a single MathJax script that is working on my blog. The script that I have now is http:

Solution 1:

According to docs, you should first install KaTeX like this:

<linkrel="stylesheet"href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.css"><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.js"></script>

and then install the Auto-render extension, presumably like this:

<scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/contrib/auto-render.min.js"></script>

and add

<script>renderMathInElement(document.body);</script>

to the end of the body element. See details on the page I've referenced (looks like you will need to set delimeters like this:

<script>renderMathInElement(document.body,{delimiters:
  [{left: "$", right: "$", display: false}]
});</script>

Solution 2:

What was wrong was the path to the scrript source . It is not

<scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/auto-render.min.js"></script>

but

<scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/contrib/auto-render.min.js""></script>

Now I have another question: My site is containing many greek characters, in equations that are rendered with Matjax easily , but Katex is not good for this. For example I am using ν symbo (not /nu). Is there any way to make Katex render greek symbols, please. Thank you. You have been of unexpected help.

Post a Comment for "How Can I Replace Matjax Script With Katex Script On Blogger?"