Re: Mathematica and LaTeX
- To: mathgroup at smc.vnet.net
- Subject: [mg107998] Re: [mg107966] Mathematica and LaTeX
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Fri, 5 Mar 2010 04:30:17 -0500 (EST)
- Organization: Mathematics & Statistics, Univ. of Mass./Amherst
- References: <201003041027.FAA26613@smc.vnet.net>
- Reply-to: murray at math.umass.edu
That's a common problem that is easily solved in either of two ways: (1) Process the LaTeX file with pdfTeX so as to directly convert from .tex source to .pdf output. This should avoid the bounding box problem. (2) Instead of doing the Mathematica Export to .pdf, Export to .eps. Next, run an ordinary LaTeX processor that produces .dvi output. Finally, convert from .dvi to .ps and then from .ps to .eps. I do (2) all the time, since I get the quickest workflow that way. But I use (1) sometimes, too. To be sure, I tried both solutions using MiKTeX 2.8 and the following .tex source file. I show the version for method (1); change the extension from "pdf" to "eps" for method (2). \documentclass{article} \usepackage{graphics} \begin{document} Here's a plot: \begin{figure}[h!] \includegraphics{plot.pdf} \end{figure} \end{document} On 3/4/2010 5:27 AM, Jim Lambaugh wrote: > Hi all > > In Mathematica I have the following code: Export["plot.pdf", Plot[x^2, > {x, 1, 2}], ImageSize -> 100] > > Now, when I include "plot.pdf" in my LaTeX-document, my compiler says > that there is no bounding-box, and hence it will not compile. What is > the issue here? Mathematica or LaTeX? > > Also, is it possible to change the font of the numbers on the plot? > > > Sincerely, > Jim Lambaugh. > -- Murray Eisenberg murray at math.umass.edu Mathematics & Statistics Dept. Lederle Graduate Research Tower phone 413 549-1020 (H) University of Massachusetts 413 545-2859 (W) 710 North Pleasant Street fax 413 545-1801 Amherst, MA 01003-9305
- References:
- Mathematica and LaTeX
- From: Jim Lambaugh <lambaugh@gmail.com>
- Mathematica and LaTeX