While I realize that it might not be used as often as it is on Math.SE, it would be nice to be able to use inline Latex every now and then to illustrate an algorithm or a math function. Would this be possible?

  • I'm marking this [status-declined] for completeness since you found a decent workaround.
    – Adam Lear StaffMod
    Nov 9, 2011 at 5:41
  • 1
    We're programmers, decent workarounds is what we do.
    – user28988
    Nov 9, 2011 at 5:56

3 Answers 3


It's possible, but I'm not sure that it's necessary. I can't recall any situations where we could've really used an accurate math representation.

But, I could be totally wrong. :)

Typically requests like this need to come with a list of situations where the feature would be genuinely useful. Do you have any particular questions in mind?


I would like to point out that according to the faq this site deals with

algorithm and data structure concepts

These are problems that tend to be reduced to some kind of math problem and many times are best expressed with the help of mathematical notation.

I looked at the solution proposed of using images linked from http://www.codecogs.com/latex/eqneditor.php

but for anything non-trivial this really would be a big PITA.

For instance, I wrote this solution for a problem from Skiena's Algorithm Design Manual.


I agree that Math formatting could be a very nice feature, as it is available in numerous SE sites.

It is helpful to formalize some problems, and I personnaly do not understand the workaround that is suggested.

For example in this question I'd have preferred to explain my solution mathematically without actually giving the code. And I would have like to be able to provide the formula for computing the performances: $p_t = \frac{p_{t+1}}{p_t}$


You must log in to answer this question.