Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

We would like to generate simple mathematical formulas on the fly (e.g. $\sin^2 \theta$). The above function seems to be a MathJaX representation. Most of the solutions depend on writing mathematical equations using MathML or Latex or jsMath or MathJaX. I am assuming MathJaX would be the right solution to use if you are planning write these equations right now and most of these solutions get embedded as javascript directly.

Is there a way to generate these equations on the server side using a language like Java assuming the application logic provides a mechanism to embed them in the HTML. What kind of solutions are available if we have to go down this path.

I am a complete novice on this subject, looking for inputs so that we choose the right solution.

share|improve this question

closed as off topic by Mariano Suárez-Alvarez, Aryabhata, Ross Millikan, Qiaochu Yuan Jan 7 '11 at 1:35

Questions on Mathematics Stack Exchange are expected to relate to math within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

2  
This is off-topic on this site, as this is not a math question. (Out of curiosity: did you look in the list of questions for other questions of a similar flavor before asking?) –  Mariano Suárez-Alvarez Jan 5 '11 at 4:31
    
I don't understand the question. What's wrong with any of the solutions you listed? Do you want to generate a single static image for the whole formula? There are solutions for that too — Wikipedia renders mathematical formulae that way. –  Zhen Lin Jan 5 '11 at 4:32
    
I would try to avoid generating static images, since I need to figure out a mechanism to store / host this information in my server which is additional maintenance for me. –  Jason Jan 5 '11 at 6:52

1 Answer 1

There are two parts to the problem: how to express the mathematics and how to convert that expression into a visual representation. For the first part, how to express the mathematics, LaTeX is probably the easiest choice. For the second part, the benefit of something like MathJax is that it puts the work of doing the displaying on the client side, which is essentially the same as any web page—the server provides marked-up content, the client renders it. I suspect that it's also easier to work with quirks of different browsers with a client-side solution, but I don't know for sure. There are ways to render LaTeX on the server side, delivering images files (I know there's an extension for MediaWiki that does this), the results I've seen from it do not match the surrounding text as well as MathJax.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.