Mathematica Mathematica Plot to Latex Document

AI Thread Summary
To include a Mathematica plot in a LaTeX document, first ensure you have the graphicx package by adding \usepackage{graphicx} in the document header. Convert your Mathematica plot to an EPS file by selecting the plot, navigating to Edit -> Save Selection As -> EPS, and saving it with a .eps extension. In your LaTeX document, insert the figure using the provided code structure, which includes the figure environment, centering the image with \includegraphics, adding a caption, and labeling the figure for future references. This method allows for easy integration of graphics into LaTeX documents, enhancing the presentation of visual data.
Dustinsfl
Messages
2,217
Reaction score
5
How can I put a Mathematica plot in my Latex document?
 
Physics news on Phys.org
Best way I know how:

1. Execute the

Code:
\usepackage{graphicx}

command in your header.

2. Convert your Mathematica plot to eps. You can do that by some variation of this procedure:

a. Select the plot.
b. Select Edit -> Save Selection As -> EPS...
c. Save file as foo.eps (or whatever filename you want - should have .eps extension for Encapsulated PostScript file format).

3. For each figure, use this code:

Code:
\begin{figure}[H]
\begin{center}
\includegraphics{foo.eps}
\end{center}
\caption{Whatever text you want to accompany the figure goes here.}
\label{Fi:Whatever_you_want_to_refer_to_this_figure_as_later_in_your_document}
\end{figure}

See how that works.
 
I was actually able to get with just this line

\includegraphics[height=2.5in]{plot}
 
Back
Top