Mathematical formulas and LATEX

Is there any project to support the edition of mathematical formulas?

If you may allow me a suggestion, It would be great to be able to compile TEX commands embedded in the text. Therefore one could use SCRIVENER as a graphic interface to LATEX (something like TEXshop, Kile, or TEXnicCenter). And it would be even better if one could see a preview of the compilation in a another window.

Or, if that is way too ambitious, it would already be great to be able, at least, to compile a file ready to be sent to a another LATEX graphic interface in a way that the text would keep the same layout.

Keep on with the good work, guys!