How can I use MathJax or LaTex in an html file?

I cannot get it to work and I’m not sure what I’m doing wrong.

I’ve downloaded MathJax.js, created an html file and linked it to the js file appropriately. I even copied and pasted from a previously answered question on here and just changed the link from a vpn (the vpn didn’t work either, but the question and response were over three years old) to the js file on my machine.

Here’s what I have in my html:

<html>
   <head>
    <title>MathJax</title>
    <script type="text/x-mathjax-config">
    MathJax.Hub.Config({"HTML-CSS": { preferredFont: "TeX", availableFonts: ["STIX","TeX"] },
        tex2jax: { inlineMath: [ ["$", "$"], ["\\\\(","\\\\)"] ], displayMath: [ ["$$","$$"], ["\\[", "\\]"] ], processEscapes: true, ignoreClass: "tex2jax_ignore|dno" },
        TeX: { noUndefined: { attributes: { mathcolor: "red", mathbackground: "#FFEEEE", mathsize: "90%" } } },
        messageStyle: "none"
    });
    </script>    
    <script type="text/javascript" src="MathJax.js"></script>
    <script type="text/javascript" src="latest.js"></script>

  </head>
  <body>
     The definition of the Euler-Mascheroni constant is
     \gamma=\lim_{n\to\infty}\left(\sum_{k=1}^n\frac1k-ln(n)\right) 
  </body>
</html>

I would greatly appreciate any assistance.

145 thoughts on “How can I use MathJax or LaTex in an html file?”

  1. It is perfect time to make some plans for the future and it’s time to be happy.
    I have read this submit and if I could I want to suggest you few fascinating things or
    advice. Maybe you could write subsequent articles referring to this article.
    I want to learn even more issues approximately it!

    Reply
  2. It is the best time to make some plans for the future and it’s time
    to be happy. I’ve read this post and if I could
    I want to suggest you some interesting things or tips.
    Perhaps you could write next articles referring to this article.
    I desire to read more things about it!

    Reply
  3. I’ve been surfing online more than three hours today, yet I never found any interesting
    article like yours. It’s pretty worth enough for me.
    In my view, if all site owners and bloggers made good content
    as you did, the internet will be a lot more useful than ever before.

    Reply
  4. І have been actually hooked on Soderberg’s (sic) ϳob considering that “The Limey” and also positively doеs
    not allow me ɗown right here. The most effeсtive component is that my wife enjoyed the film likewiѕe.
    Our company actuаlly DISCUSSED јust wҺat οur team observed throughout our flight
    to thᥱ dining еstаblishment and also over the entire
    dinner that observed. Solaris is a stunning minimіlist partner with
    pеrsonalities, problems, as welⅼ as suitables that perhaps everyone
    could interⲣret differently. Superb Choice!

    Reply
  5. I absolutely love your site.. Very nice colors & theme.
    Did you create this web site yourself? Please reply back as I’m looking to
    create my own site and would love to learn where you got this from or just what the theme
    is named. Cheers!

    Reply
  6. Furthermore, i believe that mesothelioma cancer is a exceptional form of cancer that is generally found in individuals previously familiar with asbestos. Cancerous cells form in the mesothelium, which is a protective lining that covers many of the body’s bodily organs. These cells usually form within the lining from the lungs, belly, or the sac that encircles the heart. Thanks for giving your ideas.

    Reply
  7. It’s appropriate time to make a few plans for the longer
    term and it’s time to be happy. I have
    learn this publish and if I may I want to suggest you few attention-grabbing issues or
    advice. Maybe you could write subsequent articles relating to
    this article. I want to read even more things
    about it!

    Reply
  8. It is appropriate time to make some plans for the future and it’s
    time to be happy. I’ve read this post and if I could I wish to suggest you few interesting
    things or tips. Maybe you can write next articles referring to this article.
    I desire to read more things about it!

    Reply
  9. I have been surfing on-line more than 3 hours today, yet I by no means
    found any interesting article like yours. It is pretty value enough for
    me. Personally, if all website owners and bloggers made just
    right content as you probably did, the web will be a lot more helpful than ever
    before.

    Reply
  10. It’s perfect time to make some plans for the future and it is time to be happy.
    I’ve learn this post and if I may just I wish to suggest you
    some attention-grabbing things or tips. Maybe you can write subsequent articles regarding this article.
    I want to read more things approximately it!

    Reply
  11. I seriously love your site.. Excellent colors & theme.
    Did you make this site yourself? Please reply back as
    I’m wanting to create my own website and want to know where you
    got this from or exactly what the theme is called.
    Thank you!

    Reply
  12. This design is steller! You definitely know how to keep
    a reader entertained. Between your wit and
    your videos, I was almost moved to start my own blog (well, almost…HaHa!) Wonderful job.
    I really enjoyed what you had to say, and more than that, how you presented it.
    Too cool!

    Reply
  13. Simply wish to say your article is as astounding. The clearness for your post is just nice and that i can think you are
    an expert in this subject. Well together with your permission let me to take hold of your RSS feed to keep updated with coming near near post.
    Thank you one million and please carry on the rewarding
    work.

    Reply
  14. i need loan now, i need loan 2020. can i get loan modification i need loan i need a loan today i need a loan shark, cash advance loans till payday, cash advance online, cash advance, cash advance loans till payday. Commerce study of those economics, terms of the payment .

    Reply

Leave a Comment