Imagine a Mathematica package that could provide a notebook with the editing capabilities of a LaTeX editor such as TeXworks. There would then be no need to export LaTeX source code from Mathematica, or to import that code to a LaTeX editor. Instead, the LaTeX document could be written in the same notebook in which the calculations were done.
How is Mathematica currently being used to generate LaTeX documents, or parts of documents? To clarify: I'm interested not only in functions and packages that have been written for this purpose, but also the general workflows that have been adopted.