How Can I Format Mathematica Expressions for Publication?

  • Context: Mathematica 
  • Thread starter Thread starter hanson
  • Start date Start date
  • Tags Tags
    Mathematica Publication
Click For Summary

Discussion Overview

The discussion revolves around formatting lengthy mathematical expressions produced in Mathematica for publication, particularly in Microsoft Word. Participants explore various methods for achieving a visually appealing output without manually retyping the expressions.

Discussion Character

  • Technical explanation, Debate/contested, Conceptual clarification

Main Points Raised

  • One participant expresses difficulty in formatting Mathematica outputs in Word, finding direct copy-pasting results in "ugly" expressions.
  • Another suggests using the TeXForm[result] command in Mathematica to convert expressions to TeX format for easier integration into documents.
  • A different approach involves taking screenshots of Mathematica outputs and editing them in an image editor to isolate equations.
  • Several methods for exporting from Mathematica are proposed, including exporting as PDF, using Save As Special > Tex, and exporting individual cells as EPS or GIF files for Word.
  • One participant critiques the use of MS Word for mathematical documents, advocating for LaTeX as a superior alternative and mentioning that Mathematica can convert outputs to TeX format.

Areas of Agreement / Disagreement

Participants present multiple competing views on the best method to format Mathematica expressions, with no consensus on a single preferred approach. Some advocate for LaTeX, while others suggest various export and editing techniques.

Contextual Notes

Limitations include the potential learning curve associated with LaTeX, the varying quality of exported formats, and the dependence on specific software capabilities for effective formatting.

hanson
Messages
312
Reaction score
0
Hi all.
I am using Mathematica to do a project.
I have produced the results, a lot of lengthy mathematical functions and expressions, in Mathematica.
The problem I am facing is how to output these lengthy expressions into some "nice-looking" format?
It is impossible for me to re-type the expressions in Equation Editor in Microsoft Word according to the result in Mathematica, I know that's stupid.

But directly "copy and paste" the results onto a word document is not working well. The expressions are "ugly" in Word.

So I am wondering how I can extract the expressions I produced from Mathematica and format it nicely.
 
Physics news on Phys.org
If you can use TeX or LateX to type your document, you may use the TeXForm[result] command in Mathematica to see the "result" in TeX form, then you can copy-paste it. By the way, there was a program (not free) which translates LaTeX files into Word files but I do not remember the name.
 
If you are using Windows you could open up Mathematica, and then take a screen shot by pressing the 'Print Screen' button. You can then open up an image editor such and GIMP and create a new image the same size as your screen resolution. From there you can paste your screen shot into the image editor, and then crop out individual equations.

Now that I think about it, cosmicstring's solution sounds like it might be a bit easier.
 
You can print directly from Mathematica.

You can export from Mathematica as PDF.

You can send notebook files and tell people to get the free Mathematica Reader.

You can go to Save As Special > Tex and the entire notebook will compile in TeX.

You can export individual cells containing equations as eps or even gif files, and then import them into word.

As a last resort, or a quick fix, you can just use print screen.
 
I hope no-one will take this the wrong way, but I find it difficult to take seriously anyone who writes a mathematical document in MS Word. Latex is so vastly superior that it really makes sense to learn to use it. The good news is it really isn't hard to pick up, for example by left clicking on formulae at PF (which brings up a pop-up window showing the latex code used to format the formula). There's a bit more to it than that of course, but you can find documentation on-line which will fill in the gaps. And as you probably already know, Mathematica and Maple have commands which convert output from these systems into tex. Since latex is just a vast set of macros for tex, these will work perfectly in your latex document.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 21 ·
Replies
21
Views
6K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K