MathJax in OffLine Mode

879 views
Skip to first unread message

perikle...@gmail.com

unread,
Aug 24, 2015, 8:46:01 PM8/24/15
to MathJax Users
Hello,
I work in a writing group of a scientific mathematical book.
We have undertaken the obligation to transfer the book by PDF in electronic form HTML and MathJax was our solution to transfer the LaTeX in the online form.
During the code-development period we used inside header brackets

<script type="text/x-mathjax-config">
MathJax.Hub.Config({
TeX: { equationNumbers: { autoNumber: "AMS" } }
});
</script>


<script type="text/javascript"  src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> 



But in this time we would like to check if someone could have 
So I decide to download locally the Mathjax but I meet some problems
My operation system is Windows 8 and my Browser is Google Chrome.
Let's imagine that my html file is in path C:\Users\Username\Dropbox\MyBook
In this folder there are three objects
Chapter_1.html
Chapter_1.css
Mathjax

The last one is the unzipped folder from the last version available:

So I change the header bracket with the following ones:

<script type="text/x-mathjax-config">
 
MathJax.Hub.Config({
 
TeX: { equationNumbers: { autoNumber: "AMS" } }
 
});
 
</script>




 <script type="text/javascript" src="C:\Users\Username\Dropbox\MyBook\MathJax\MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> 

The problem is that when I load with my Browser in every mathematic formula it appeared an error "Math Processing Error"

I don't know what i can do, so i will appreciate your help.
I would like to clarify that i am rookie in all js,html stuffs so please be as explanatory as you can.

Additionally i would like to ask if there is any way to use relative paths to include MathJax to my html file


Thank you very much

Davide P. Cervone

unread,
Aug 30, 2015, 10:27:26 AM8/30/15
to mathja...@googlegroups.com
So I change the header bracket with the following ones:

<script type="text/x-mathjax-config">
 
MathJax.Hub.Config({
 
TeX: { equationNumbers: { autoNumber: "AMS" } }
 
});
 
</script>




 <script type="text/javascript" src="C:\Users\Username\Dropbox\MyBook\MathJax\MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> 

The problem is that when I load with my Browser in every mathematic formula it appeared an error "Math Processing Error"

Did you get a complete installation of MathJax (that is, not just MathJax.js but all the other files as well)?

If you enter

MathJax.Message.Log()

in the browser's console window, what do you get?


Additionally i would like to ask if there is any way to use relative paths to include MathJax to my html file

You should be able to use

<script type="text/javascript" src="MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>

if the MathJax folder is in the same folder as the HTML file you are viewing.

Davide
Reply all
Reply to author
Forward
0 new messages