Imagine a Mathematica packageA short example code will show that could provide a notebook with the editing capabilities ofanswer to this question is yes. The example code (which I give in my answer) is for a simple LaTeX editor such asthat is almost a drop-in replacement for TeXworks. ThereThe only(?) editing features it lacks are syntax coloring, delimiter balancing, and being able to sync cursor positions between source and preview.
The value of this simple LaTeX editor is primarily conceptual. It is, in my opinion, the best starting point for thinking about and discussing a much more difficult question: How best to get LaTeX and Mathematica working easily together for the average user?
That this question was not answered at least 15 years ago, is I suppose, some indication of its difficulty. But now we can rephrase it as a more structured question that is much easier to answer: What editing features would then be no needwe like to exportadd to this simple LaTeX sourceeditor?
Of course, our wish-list should include features like generating LaTeX code from Mathematica output, or to import that code towell beyond what a "normal" LaTeX editor can do. Instead
Disclosure statement: I am the author of a commercial package, EnableTeX, that implements most of my own wish-list of features for such an editor. I am using this post to announce the LaTeX document could be written inrelease of my package, to share my ideas, and to ask the same notebook infollowing question which the calculations were done.is perhaps too broad and open ended to be asked as a main question:
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.