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

  • Context: Mathematica 
  • Thread starter Thread starter DeanDeanDean
  • Start date Start date
  • Tags Tags
    Latex Mathematica Plot
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 9K views
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.