Using MathJax to render Fortress code on web pages

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

We have been experimenting with using MathJax to render Fortress code in this blog and also on the Fortress wiki. This is a third-party open-source project that uses Javascript code to render LaTeX expressions within browsers. Here is a sample expression: \(x = { -b+\sqrt{b^2 - 4\,a\,c} \over 2\,a }\). The Fortify tool has been revamped to produce HTML code for single-line expressions, and work is in progress to make it produce HTML for multiline code chunks.

Comments:

Hey, it works in comments as well.
\(x = { -b\pm\sqrt{b^2 - 4\,a\,c} \over 2\,a }\)

Posted by guest on June 23, 2011 at 02:19 PM EDT #

BTW, Safari 5's new support for MathML broke the MathJax output. The newest blog post for an example is missing many characters. Oh well.

Posted by Ilmari on July 29, 2011 at 01:47 AM EDT #

So you know, MathJax formatting is currently broken in the blog. I just see nasty raw LaTeX.

Posted by guest on February 16, 2012 at 02:38 AM EST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Technical discussion of the Fortress programming language and its applications

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today