Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Add MathJax

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Software Dev/Rep Hai-Etlik's Avatar
    Join Date
    May 2009
    Location
    48° 28′ N 123° 8′ W
    Posts
    1,333
    Blog Entries
    1

    Default Add MathJax

    It'd be useful at times to be able to write mathematical notation in posts. Math plays a big role in cartography and graphics, even if we don't always use deal with the math directly. Sometimes the math does become a direct issue and it would be nice to have some support when it does.

    There's a Javascript library called MathJax which can add math notation rendering easily. It looks for LaTeX math notation in the page and converts it to nicely typeset math. It provides a fallback system with checks for mathematical fonts, uses CSS font download to provide them if they aren't, and has image based fonts as a backup, and it can use MathML for layout if the browser supports it or uses HTML and CSS otherwise.

    I've tried it out quickly with Greasemonkey, and it seems to work just fine with the Guild's site.

    For instance \[\sum^n_{k=1}k=\frac{n(n+1)}{2}\]

  2. #2
    Community Leader Jaxilon's Avatar
    Join Date
    Nov 2009
    Location
    A beach in Ecuador
    Posts
    5,548

    Default

    This is one of those times when I'm left scratching my head by something you said Hai-Etlik

    I suppose I could go find this MathJax and see if it fills me in. I am however left thinking if you typed in the formula above then what do you need with the add on? Unless this is one of those GIS things I haven't tried yet?
    “When it’s over and you look in the mirror, did you do the best that you were capable of? If so, the score does not matter. But if you find that you did your best you were capable of, you will find it to your liking.” -John Wooden

    * Rivengard * My Finished Maps * My Challenge Maps * My deviantArt

  3. #3
    Software Dev/Rep Hai-Etlik's Avatar
    Join Date
    May 2009
    Location
    48° 28′ N 123° 8′ W
    Posts
    1,333
    Blog Entries
    1

    Default

    Quote Originally Posted by Jaxilon View Post
    This is one of those times when I'm left scratching my head by something you said Hai-Etlik

    I suppose I could go find this MathJax and see if it fills me in. I am however left thinking if you typed in the formula above then what do you need with the add on? Unless this is one of those GIS things I haven't tried yet?
    It would turn the messy looking LaTeX notation I wrote into mathematical notation. http://tauday.com/ is a good example of MathJax in action. Try it with Javascript on and off.

  4. #4
    Administrator Facebook Connected Robbie's Avatar
    Join Date
    Mar 2006
    Location
    Dayton, OH
    Posts
    3,877
    Blog Entries
    6

    Default

    Looks like it's working to me
    Fantaseum (https://www.fantaseum.com)

    Robbie Powell - Site Admin

  5. #5

  6. #6
    Community Leader Jaxilon's Avatar
    Join Date
    Nov 2009
    Location
    A beach in Ecuador
    Posts
    5,548

    Default

    Ok, strange..
    In Firefox 10.0.2 I keep getting a popup that states:

    MathJax no longer loads a default configuration file; you must specify such files explicitly. This page seems to use the older default config/MathJax.js file, and so needs to be updated. This is explained further at

    http://www.mathjax.org/help/configuration
    That's not a big deal but for whatever reason the whole website is all goofy looking. It's as if it's in some generic form and I can't navigate it at all. I am able to use the website fine in Safari, which is what I am doing now.

    Anyone else having any issues? Basically, I'm being forced to use another browser right now and I prefer not to.
    “When it’s over and you look in the mirror, did you do the best that you were capable of? If so, the score does not matter. But if you find that you did your best you were capable of, you will find it to your liking.” -John Wooden

    * Rivengard * My Finished Maps * My Challenge Maps * My deviantArt

  7. #7
    Software Dev/Rep Hai-Etlik's Avatar
    Join Date
    May 2009
    Location
    48° 28′ N 123° 8′ W
    Posts
    1,333
    Blog Entries
    1

    Default

    That's weird, it looks like that's supposed to happen if the config parameter isn't given, but it's right there

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

  8. #8
    Administrator Redrobes's Avatar
    Join Date
    Dec 2007
    Location
    England
    Posts
    7,245
    Blog Entries
    8

    Default

    Hmmm 10.0.2 here and it looks fine !

  9. #9

  10. #10
    Community Leader Jaxilon's Avatar
    Join Date
    Nov 2009
    Location
    A beach in Ecuador
    Posts
    5,548

    Default

    [Problem solved see *EDIT at bottom if interested.]
    Well, this morning everything looks like it should instead of the "generic" non-layout I had last night. However, on every page in the lower left corner I do get a white pop-up box that is blank.

    edit: On closer inspection the words are just white and very pale yellow and still read:
    MathJax no longer loads a default configuration file; you must specify such files explicitly. This page seems to use the older default config/MathJax.js file, and so needs to be updated. This is explained further at


    This seems like a server side message so I'm not sure why I am seeing it. As some of you may know I recently rebuilt my machine with a new version of Win7 home premium. I believe the last patch I ran a few days ago was something for Adobe. I'm thinking maybe I'm just missing something on my machine except that when I looked up the message it said it's not my problem.


    *EDIT: I got it – I realized I should try tossing my cookies, hehe. So I hit Ctrl-F5 and then a script error message popped up. I attempted to continue and a little box down in the left corner was trying to load Mathjax. It never got past 0% and eventually the popup came back. I just closed it and then closed and reopened the browser again and it seems to be fine. I am reminded that I did get a message the other day while doing a restart that a script was hung. Perhaps that was the script and it was just botched.
    Last edited by Jaxilon; 02-26-2012 at 01:31 PM.
    “When it’s over and you look in the mirror, did you do the best that you were capable of? If so, the score does not matter. But if you find that you did your best you were capable of, you will find it to your liking.” -John Wooden

    * Rivengard * My Finished Maps * My Challenge Maps * My deviantArt

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •