when writing the sphinx docs, I use the following regular expression in Emacs's
query replace regexp command:
That way I can write the inline math (on a single line!) using the usual $
signs and replace them just before making the docs. Simple, but helps.