I can't seem to get environments to work in blogger
Only $….$ work.
I do have environments turned on:
In my blogger template I have
Here is the html source of the three posts. I tried all sorts of things…
math test 2
Math test 2
Thanks in advance for any help!
Davide P. Cervone
Due to restrictions imposed by browser security models, you must load jsMath from the same server as the page where jsMath is to be used. So you are not able to load jsMath from arielbalter.com from within blogspot.com. While the initial easy/load.js file will load properly, other components that jsMath may need top load on demand will not. In your case, autoload.js is not able to load jsMath.js, the core code for jsMath.
Note that this is not a restriction imposed by jsMath, but rather by the browsers themselves. The mechanism used by jsMath to load its components is subject to the "same-origin policy" that is part of the security model of most modern browsers.
I still think it is weird that some of it works, and some of it doesn't, like inline vs. display. I wish there were a way to make it work.
Furthermore, it works with some themes and not others. I wonder if this implies the problem is different and/or more complicated than you suggest?
Davide P. Cervone
What browser are you using? Some browsers are less strict about the same-origin policy than others. But I can tell you that the same-origin policy will be a problem for Firefox and Safari. Use the error console in either browser to see the error due to the security issue. For example, in Firefox, I see the following two pertinent messages:
Security Error: Content at http://www.arielbalter.com/blabnotes/ may not load data from http://arielbalter.com/jsMath/plugins/tex2math.js.
Error: uncaught exception: autoload: can't load the file 'plugins/tex2math.js'
Message: Access to restricted URI denied
These clearly indicate the same-origin policy is the culprit.
I see that you are calling jsMath as http://arielbalter.com/jsMath/easy/load.js but that the rest of the site is http://www.areilbalter.com, so try loading jsMath from http://www.arielbalter.com/jsMath/easy/load.js instead.
If I load http://arielbalter.com, I am redirected (automatically) to http://www.arielbalter.com, but perhaps that is dependent on the theme? If so, that might account for it sometimes working and sometimes not.