Enabling Mathjax for github pages

301 views
Skip to first unread message

Subir Varma

unread,
Oct 11, 2022, 6:22:07 PM10/11/22
to MathJax Users
Hello, How do I enable Mathjax for github pages? Github announced support for mathjax on their pages in May of this year, but it does not seem to be working for me.

Thanks,
Subir

Lucas Stefano

unread,
Oct 12, 2022, 10:30:45 AM10/12/22
to mathja...@googlegroups.com

Hello, Subir!

 

Did you try to add the cdn  to the head of your html?

 

<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>

 

--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mathjax-users/8d84bfd3-21d7-4481-bfba-5f979481290cn%40googlegroups.com.

Subir Varma

unread,
Oct 12, 2022, 5:57:02 PM10/12/22
to mathja...@googlegroups.com
Hi Lucas,

I inserted those 2 lines in the head.html file in the minima directory, but it didn't work. I looked at the source html code for the page, and did not find these two lines in the header there either. Not sure what I am doing wrong.

Thanks,
Subir
--------------------------------------------
Information Systems and Analytics Department
Leavey School of Business
Santa Clara University


You received this message because you are subscribed to a topic in the Google Groups "MathJax Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mathjax-users/NwV6AYcWXLI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mathjax-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mathjax-users/008201d8de47%2433b89a10%249b29ce30%24%40gmail.com.

Lucas Stefano

unread,
Oct 12, 2022, 6:24:40 PM10/12/22
to mathja...@googlegroups.com
Hi, Subir!

If you are using Jekyll, try Enable mathjax support in YAML. For example, usemathjax: true.
I found this site with some additional guidance on how to enable support. I hope it helps you:

http://webdocs.cs.ualberta.ca/~zichen2/blog/coding/setup/2019/02/17/how-to-add-mathjax-support-to-jekyll.html

Subir Varma

unread,
Oct 12, 2022, 7:56:00 PM10/12/22
to mathja...@googlegroups.com
I did all that but it still refuses to work! Somehow the script is not showing up in the html source code.
Thanks for your help!

Thanks,
Subir
--------------------------------------------
Information Systems and Analytics Department
Leavey School of Business
Santa Clara University

Reply all
Reply to author
Forward
0 new messages