Todd's Place
I don't do these:
  • Last Seen
  • Blog
  • Contact
  • Air Quality

How to embed LaTex math equations in a blog

12/30/2015

0 Comments

 
Lately, I've been skimming a lot of math papers. There are some great breakthroughs in number theory, and I'm trying to get a feel for the significance of the results. In preparation to share some of the fun, I need to put some math in my blog. To typeset equations, there's a good way (LaTex), a bad way (MathML), and an ugly way (rendering images for each equation).

Mercifully, there is a way to embed LaTex directly into HTML for a blog. I used this great tutorial which handles the setup for many different blog platforms. You do need access to raw HTML to include a JavaScript handler. Just look up your platform (i.e. Weebly, Wordpress, Blogger, Tumblr, etc...) and go.

​Here I've copied his two examples:

​
Math between dollars is inline: $\sum_{k=1}^n k = \frac{n(n+1)}{2}$
Math between slash-square-brackets is display:

\[ \sum_{k=1}^n k = \frac{n(n+1)}{2} \]

So pretty. So easy!
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    Author

    I'm an applied-math-research Ph.D. and serial startup founder. I am a recognized computer security expert, fortunate to join the ranks of many, great CTO's. I've founded and seed-funded multiple, successful, VC-backed companies. I'm still at it!

    My wonderful wife and I moved from New England to near the Portland Oregon area. We LOVE the Pacific Northwest, and we've been here a few years now. We have an adorable baby girl, Vivi.

    People here are nice and smile a lot. Vegetables are insanely delicious. Driving is not like Mad Max.

    This blog is very Vivi-centric. Our family just can't resist. :) Also, there are some stupid hacking and geek tricks.


    Archives

    December 2020
    November 2018
    October 2018
    September 2018
    April 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    October 2017
    September 2017
    August 2017
    July 2017
    June 2017
    May 2017
    April 2017
    March 2017
    February 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015
    August 2015
    July 2015
    June 2015
    May 2015
    April 2015
    March 2015
    February 2015
    June 2014
    April 2014
    March 2014
    January 2014
    October 2013
    April 2013
    March 2013
    February 2013
    January 2013

    Categories

    All

    RSS Feed

Copyright 2012-2021  Todd Brennan