Can you be more specific about your setup? When you say on the iPad,
are you viewing this in a web browser, or are you writing an App in
which you want to display the math? I don't know UI Kit, but I
googled it and don't really see the connection to MathJax. Can you
say how you are using it with MathJax? Finally, have you read the
documentation at
http://www.mathjax.org/docs/2.0/typeset.html
?
Davide
When you say you are using UI Kit do you really mean UIWebKit? If so,
you might want to check how it gets configured, as I think that you
may need to ask it to enable javascript.
Have you tested that javascript is actually being processed (e.g., but
adding
<script> alert("Javascript working!") </script>
to the page and looking for the alert)?
These are the first things I'd look at.
Davide
You may need to use a local copy of MathJax, in which case you may
want to slim it down a bit first. See
http://new2objectivec.blogspot.com/2012/03/tutorial-how-to-setup-mathjax-locally.html
for some details about what can be removed. See in particular my
response to the post for some additional reductions that can be made.
Davide
The next thing to do is insert
<script>
alert("MathJax = "+window.MathJax);
</script>
in the file after MathJax.js is loaded and see if the alert shows that
the MathJax object has been defined. If yes, then try
<script>
MathJax.Hub.Queue(function () {alert(MathJax.Message.Log())});
</script>
to see if what messages are being produced.
You could also try adding
<script type="text/x-mathjax-config">
alert("Processing Config");
var mj_output = "";
MathJax.Hub.Startup.signal.Interest(function (message) {mj_output +=
"Startup: "+message+"\n"});
MathJax.Hub.signal.Interest(function (message) {mj_output += "Hub:
"+message+"\n"});
MathJax.Hub.Queue(function () {alert(mj_output)});
</script>
BEFORE the script that loads MathJax.js. This should get you a long
list of actions that MathJax has taken.
Send me the results and we'll see what we can figure out.
Davide
Are you loading a configuration file with config=filename, or do you
do inline configuration?
Try the following:
<script type="text/x-mathjax-config">
alert("Processing Config");
</script>
<script src="path-to-mathjax/MathJax.js"></script>
where "path-to-mathjax" is the location of your copy of MathJax. You
should get the alert, and also a warning message that no configuration
was specified.
I'm wondering if MathJax's method of loading external files is not
working. Can you do the following: create a file called alert.js (in
the same directory as the HTML file) containing the line
alert("External file loaded");
and then put
<script>
(function () {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "alert.js";
document.getElementsByTagName("head")[0].appendChild(script);
})()
</script>
in the main HTML file and see if you get the alert from the external
file.
Do you get an error console anywhere that you can check for javascript
errors? If so, when you use MathJax do you get any errors?