Hi
I'm trying use local installation of MathJax (I want to use it on my laptop I don't running any kind of server) with math.js plugin. I'm add:
math: {
mathjax: 'plugin/mathjax/MathJax.js',
},
I also tried to put mathjax options from math.js to index.html in script tag. Every time equations are bad rendered.
Thanks in advance for help.
Did you download all of the MathJax files and is everything kept in its original folder structure? MathJax loads external files relative to the where the JS file is located. More details here http://docs.mathjax.org/en/latest/configuration.html
Hi, this is one of google's first results, and I just want to share what I just did to have this working.
In package.json append:
"devDependencies": {
... ,
"mathjax": "latest"
}
and install it with: npm install
Then in index.html:
Reveal.initialize({
math: {
// mathjax: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js' // online
mathjax: 'node_modules/mathjax/MathJax.js' //offline-local
},
dependencies: [
... ,
{ src: 'plugin/math/math.js', async: true }
]
});
then npm start
Most helpful comment
Hi, this is one of google's first results, and I just want to share what I just did to have this working.
In
package.jsonappend:and install it with:
npm installThen in
index.html:then
npm start