I tried my best to find an example of how to post a math equation on Stack Overflow, but nothing worked. I'm familiar with LaTeX though. I found some people are saying you just need to add your equation between two doubled $s ( $$ f(x) = 2x $$), but it doesn't work for me. What should I do to make it work?

  • 1
    The stack overflow site is for programming questions. If you need more than basic formatting for mathematical notation your question is likely off-topic.
    – Joni
    Oct 25 '13 at 8:16
  • 1
    Let's start with the simple stuff: Stack Exchange is not a forum, it's a Question & Answer community. Oct 25 '13 at 8:20
  • 2
    As far as I know, MathJax is not activated on Stack Overflow. Oct 25 '13 at 8:21
  • While that post says LaTeX is off on stack overflow you can get quite far with <sub> and <sup> tags Oct 25 '13 at 8:22
  • You can only do it on math.stackexchange, mathoverflow.net and physics.stackexchange, as far as I'm aware.
    – JonW
    Oct 25 '13 at 8:23
  • @RichardTingle: Also some useful entity references like &minus;, &times; etc., as well as &nbsp; for spacing.
    – Kerrek SB
    Oct 25 '13 at 8:31

Browse other questions tagged .