from Hacker News

How to Display Math and Code on Your Site

by eglover on 10/25/14, 9:12 PM with 4 comments

I've written a couple tutorials on MathJax and Google Prettify for putting LaTeX and syntax highlighted code on your site.

Displaying Math: http://ethanglover.biz/blog/how-to-display-math-equations.php

Displaying Code: http://ethanglover.biz/blog/how-to-display-code-on-site.php

(Bonus) Creating Static Headers and Footers: http://ethanglover.biz/blog/how-to-create-static-header-footer.php

  • by zachlatta on 10/26/14, 10:31 AM

    What's the reasoning for making this a text post instead of submitting the URLs directly?
  • by randy86 on 10/26/14, 9:31 AM

    Thanks. I already use MathJax and it is good. Is there an equivalent to MathJax for mathematical charts (e.g. y = f(x) rather than a random scatter) and/or for plane geometry (e.g. calculate angle A in the shown triangle etc.)?