» Online LaTeX equation rendering
Published 11 December 2013
I have created a webpage that renders LaTeX equations. In an online chat session, one may want to send an equation, but typical instant message software can’t render LaTeX. A simple workaround is to provide a link to a webpage where the equation is visible. You can test out this software here.
This software is completely client-side. The server does not store the text being rendered, in fact, the server does not even see the text being rendered. The excellent MathJax library is used to create beautiful typography.
This was inspired by P. Lutus’ Interactive LaTeX editor but there are some things that I wanted to change:
- Rather than embedding the equation in a HTTP
GETrequest, I used the URL hash parameter (that is, the text after the
#in a URL). The problem with HTTP
GETrequests is that they are length-limited, so you can’t simply paste in multiple pages of text with embedded equations. The URL hash is not sent to the server and thereby this length limit is avoided.