Mathematica Plot to Latex Document

  • Context: Mathematica 
  • Thread starter Thread starter Dustinsfl
  • Start date Start date
  • Tags Tags
    Latex Mathematica Plot
Click For Summary
SUMMARY

To include a Mathematica plot in a LaTeX document, first, use the command \usepackage{graphicx} in the document header. Convert the Mathematica plot to EPS format by selecting the plot and using the Save Selection As option. Insert the plot into the LaTeX document using the figure environment with the \includegraphics command, specifying the EPS file name. This method ensures proper integration of graphics into LaTeX documents.

PREREQUISITES
  • Familiarity with LaTeX document preparation
  • Basic knowledge of Mathematica plotting functions
  • Understanding of EPS file format
  • Experience with LaTeX figure environments
NEXT STEPS
  • Research the \usepackage{graphicx} documentation for advanced graphic options
  • Learn about different file formats supported by LaTeX for graphics
  • Explore Mathematica's export functions for various formats
  • Investigate LaTeX figure placement options for optimal layout
USEFUL FOR

Researchers, academics, and technical writers who need to integrate Mathematica plots into LaTeX documents for publications or presentations.

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}
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K