Skip to main content
Post Closed as "Duplicate" by m_goldberg, gwr, chris, Alex Trounev, bbgodfrey
A complete re-write of the text of the question. Addition of disclosure statement.
Source Link

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.

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.

A short example code will show that the answer to this question is yes. The example code (which I give in my answer) is for a simple LaTeX editor that is almost a drop-in replacement for TeXworks. The 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 we like to add to this simple LaTeX editor?

Of course, our wish-list should include features like generating LaTeX code from Mathematica output, well beyond what a "normal" LaTeX editor can do.

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 release of my package, to share my ideas, and to ask the following question which 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.

Source Link

Can a Mathematica notebook be programmed to work as a LaTeX editor?

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.