Using jsMath to render math formulas
Short, concise description of the idea
Use jsMath package allowing users to easily typeset math formulas anywhere on LJ.
Full description of the idea
Currently, there is no way to insert math formulas into LJ posts or comments except via images or by using HTML markup like sub and sup tags. The former way is very time-consuming and does not allow easy editing, while the latter allows one to produce only the simplest formulas, and even those will be of rather poor quality.
There were similar suggestions (http://community.livejournal.com/suggestions/657683.html in 2006 and http://community.livejournal.com/suggestions/752752.html in 2007), but these were suggesting some server-side code. So, both were criticized mainly for CPU and storage overhead and for the implementation difficulty; so the former suggestion was rejected, and the latter left with no status.
Installation of jsMath is easy, I have myself tested it on my local site. Only two steps are required to get it working:
- download jsMath code and image fonts and extract them from the archive
- insert one script tag into a page template
From my (rather short) experience, jsMath has sometimes problems with choosing proper fonts resulting in strange symbols in formulas, but these problems can be easily overcame even by user (who is viewing the page) himself by using jsMath "control panel".
- Allow LJ users to embed math formulas into posts, comments, and even other areas (profile, etc?)
- Use a widely-known and rather simple TeX syntax
- Get beautiful TeX-like results
- Allow such formulas to be easily edited.
- Need to store 20000 files (however, those files are small and occupy only about 7 Mb; moreover, these files never change).
- A noticeable slowdown of loading pages that contains formulas when using image fonts due to the need to download all the images (however, this is in any case better than current situation).