MathJax

Posted in: Newspaper
Post count: 13

I am using MathJax and have it working correctly for the desktop version of the website.

I have both the tagDiv Mobile Theme and the tagDiv AMP activated.

How do I get MathJax to work on the mobile version?

In the Theme Panel I use Mobile Theme > Your Custom Javascript

But here is the code I need:

<script type=”text/x-mathjax-config”>
MathJax.Hub.Config({
TeX: {
equationNumbers: { autoNumber: “AMS” },
extensions: [“AMSmath.js”]
},
tex2jax: {
inlineMath: [ [‘$’,’$’], [“\\(“,”\\)”] ],
displayMath: [ [‘$$’,’$$’], [“\\[“,”\\]”] ],
processEscapes: true
}
});
</script>
<script type=”text/javascript” async
src=”https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML”&gt;
</script>

How can I do this because the Theme Panel says to not use the script tags.

Thank you for your time.

Post count: 35449

Hi,

Please try to set the code in Newspaper>Theme panel>Analytics/Js Codes> -> https://www.screencast.com/t/uZf6AZJNn1

Thank you!

Post count: 13

Yes, that works for both desktop and mobile. Great. I was placing it in the footer code section which apparently only works for desktop. Thank you very much for your help.

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.