• Resolved desquer

    (@desquer)


    Help a newbie middle school blogging teacher,
    I have wordpress 2.1.2 hosted on my own domain, https://www.esquer.us/blog and am trying to write math equations for my students.

    I would like to use ASCIIMathML to write these equations. The syntax looks simpler than LateX (which I used many years ago in my Engineering job). The ASCIIMath site says simply “just add one line to your HTML file to load ASCIIMathML.js”.

    I have the folder/files I need but have NO CLUE as to where to add this line in my blog. The ASCIIMath site is not very helpful (for me). I cannot make heads or tails about where to add the .js file as well. Is it a plug-in?

    Help, help,
    Dave

Viewing 8 replies - 1 through 8 (of 8 total)
  • Dave,

    Do you have access to a FTP or another method of uploading the folder files to your server?

    1. If so, then upload all of the files to your server.
    2. Then you will need to find the URL path of the .js file.
    3. After you have found this then you can paste that URL into your line of code that ASCIIMath gave you.
    4. Then take that whole code and copy it.
    5. Then open up wordress and open up the theme editor under “presentation”.
    6. Open up the file called “header” or “header.php” and paste your code anywhere between the < head> & < /head> tags.
    7. That should be it!

    I hope it works out for you!

    Thread Starter desquer

    (@desquer)

    Thanks!
    I have the blog up and running and I have full access to it via transmit (Mac). I figured out that I should put the line of code in the header sheet, that’s no sweat with the editor in wp.

    But, where do I put the ASCIIMathML.js file, in wp/content or wp/admin or does it matter? I assume that I just need to point to it in that 1 line of magic code (the .js file)?!

    TIA,
    Dave

    Thread Starter desquer

    (@desquer)

    RedBMedia, I’m still confused, I did some poking around. Here is the excerpt of the code of the ASCIIMathML.js. It looks like the

    <script type=”text/javascript” src=”ASCIIMathML.js”></script>

    goes in the header part of my theme as you stated.

    But, where does this actual file (see below, I just did an excerpt) ASCIIMathML.js go? The hint seems to point to leaving it in the same place (or same level) as the header?

    Maybe you’re telling me to copy ALL of the code to the header part of the theme?

    Thanks again,
    Dave

    /*

    ASCIIMathML.js

    ==============

    This file contains JavaScript functions to convert ASCII math notation

    to Presentation MathML. The conversion is done while the (X)HTML page

    loads, and should work with Firefox/Mozilla/Netscape 7+ and Internet

    Explorer 6+MathPlayer (https://www.dessci.com/en/products/mathplayer/).

    Just add the next line to your (X)HTML page with this file in the same folder:

    <script type=”text/javascript” src=”ASCIIMathML.js”></script>

    This is a convenient and inexpensive solution for authoring MathML.

    Practically, you can have it anywhere, just make sure this line will have the correct path:
    src="ASCIIMathML.js"
    If you leave it like this, the script will be looking for the file in the theme folder.

    Exactly, you can upload the file anywhere that you would like. Just copy the entire URL or address location and paste it in the code they provided. See below:

    URL OR ADDRESS LOCATION OF ASCIIMathML.js:

    https://www.YourDomain.com/RandomFolder/ASCIIMathML.js&#8217;

    ORGINAL CODE:

    <script type=”text/javascript” src=”ASCIIMathML.js”></script>

    NEW CODE:

    <script type=”text/javascript” src=”https://www.YourDomain.com/RandomFolder/ASCIIMathML.js”></script&gt;

    Thread Starter desquer

    (@desquer)

    Thanks guys so much, I’m going to give it a shot!
    Dave

    Thread Starter desquer

    (@desquer)

    Thanks again! Followed your instructions, added a folder for the .js file and pointed to it explicitly in the header line.

    It works!!! Displays great in Firefox and Camino doesn’t in IE, but that’s why we DON’T use it!

    This is why I use WordPress, for the support that users provide each other. Thanks sooooooo much!

    Dave

    ailing

    (@ailing)

    I did what is mentioned. but when i type in the equation, it doesnt appear as it it. dave, any help?
    tks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘ASCIIMathML support for middle school math teacher blog!’ is closed to new replies.