Mathematica How to get a plot from Mathematica to Latex (in laymens)

Click For Summary
To transfer a graph or plot from Mathematica to WinEdit, users cannot rely on copy and paste due to the limitations of markup languages like LaTeX. Instead, the recommended method is to save the graphic as a separate file. In Mathematica (version 7 or later), right-click on the image and select "Save graphic as...". It is advisable to save the file in .eps or .pdf format, depending on the LaTeX compilation method being used. The saved image should ideally be placed in the same directory as the .tex document or in a designated "images" subfolder. Users can then insert the image into their LaTeX document using appropriate commands. Additionally, for those unfamiliar with LaTeX coding, using LyX is suggested as a more user-friendly alternative, allowing for easier image import through mouse clicks rather than coding.
DeanDeanDean
Messages
2
Reaction score
0
OK.

Could somebody please tell me how to get a graph/plot from Mathematica into WinEdit.

I've seached on the internet and it all talks about source codes and a lot of other stuff I don't understand.

Copy and paste does not seem to be an option!

Could some one exlpain to how to do it? I'm desparate.

Thanks.
 
Physics news on Phys.org
No, copy/paste only works in programs like Word, not in markup languages like LaTeX (or HTML, for that matter).

You need to save the picture as a separate file, and include that in your LaTeX document.
In Mathematica, you can right-click the image and click "Save graphic as...", if you have Mathematica > 7.
I suggest saving it as either .eps or .pdf, if you use latex(+dvips+pspdf) or pdflatex respectively. The most convenient place will be in the same folder where your .tex document is, or for example in an "images" subfolder.

In LaTeX, you can then insert the image, see for example this link.
 
I don't mean to disparage the OP, but have you considered LyX instead of writing LaTeX source? It still won't be as 'easy' as Word / OpenOffice / Wordperfect / Pages, but it may be more your speed (if you don't have any scripting / programming experience or inclination / time to learn).
http://www.lyx.org/

Note that you still need to save images, but you just do mouse clicks to import the image, rather than coding.
 
I'd second the recommendation for considering LyX*; it's an intermediate step between WYSIWYG users and those of us who speak LaTeX fluently.



*I've gotten friends started on the path to LaTeX by this route; it seems to have worked well for them.
 

Similar threads

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