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
Click For Summary

Discussion Overview

The discussion revolves around the process of transferring plots from Mathematica to LaTeX, particularly focusing on the challenges faced by users unfamiliar with coding or markup languages. Participants explore various methods and tools that could facilitate this process.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant expresses difficulty in transferring a graph from Mathematica to LaTeX, indicating a lack of understanding of the necessary procedures.
  • Another participant clarifies that copy/paste functionality does not work for LaTeX and suggests saving the plot as a separate file, recommending formats like .eps or .pdf for inclusion in LaTeX documents.
  • A third participant proposes considering LyX as an alternative to writing LaTeX source directly, suggesting it may be more user-friendly for those without programming experience.
  • A later reply supports the suggestion of using LyX, describing it as a helpful intermediate tool for users transitioning to LaTeX.

Areas of Agreement / Disagreement

Participants generally agree on the need to save plots as separate files for inclusion in LaTeX, but there is a divergence in opinions regarding the use of LyX versus direct LaTeX coding, indicating a lack of consensus on the best approach for users unfamiliar with coding.

Contextual Notes

The discussion does not address specific limitations of the suggested methods or the potential learning curve associated with using LyX versus LaTeX directly.

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
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · 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
3K
  • · Replies 21 ·
Replies
21
Views
6K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 8 ·
Replies
8
Views
3K