Menu

environments in blogger

Help
Anonymous
2009-12-17
2013-04-29
  • Anonymous

    Anonymous - 2009-12-17

    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

         <head>
         …..
         …..
       
         <script src='http://arielbalter.com/jsMath/easy/load.js' type='text/javascript'/>
         </head>

    Here is the html source of the three posts.  I tried all sorts of things…

    mathtest
         $\sqrt{\sigma}$
         $\begin{equation}\sqrt{\sigma}\end{equation}$
         \begin{equation}\sqrt{\sigma}\end{equation}

    math test 2
         Math test 2
         $\sqrt(\sigma)$
         \\begin{equation}
         \sqrt(\sigma)
         \\end{equation}

         \begin{equation}
         \sqrt(\sigma)
         \end{equation}

    mathtest 3

         <div>
         \begin{equation}
         \sqrt{\sigma}
         \end{equation}
         </div>

    Thanks in advance for any help!

      : http://blabnotes.blogger.com
      :

     
  • 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.

    Davide

     
  • Anonymous

    Anonymous - 2010-02-17

    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.

     
  • Anonymous

    Anonymous - 2010-02-17

    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.

    Davide

     

Log in to post a comment.