Re: Is there any productive way to use Mathematica + pdfLaTeX?

*To*: mathgroup at smc.vnet.net*Subject*: [mg47434] Re: Is there any productive way to use Mathematica + pdfLaTeX?*From*: ankowar at yahoo.com (Andy Kowar)*Date*: Mon, 12 Apr 2004 03:44:49 -0400 (EDT)*References*: <c4g69g$qtu$1@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

inacioglb at yahoo.com (Inacio Guerberoff) wrote in message news:<c4g69g$qtu$1 at smc.vnet.net>... > Hello > > I use Mathematica 5.0 and would like to know if there is any easy and > fast way to include Mathematica plots in pdfLaTeX documents. The way I > know is to make a Export[graph,"file.pdf"] for example, and then > include in the tex file the following: > > \includegraphics{file.pdf} > > The problem is that the PDF generated by Mathematica is weird, because > the plot is on the bottom-left of the page, and the same thing happens > in the document. I think what would solve the problem would be a > function like PlotPDF[Plot[x^2,{x,0,2}],"file.pdf"]. This function > saves the plot in "file.pdf", but in a way that you can insert it > directly in a LaTeX document. > > Anyone has tips on this task? > > Thanks > Inacio Guerberoff This is what I do to get pdf version of a notebook on windows. Choose File->Print, check the box "Print to File". Mathematica produces a .prn file. Open the file with Ghostscript (I use gsview 4.6). Choose File->Convert->pdfwrite and appropriate resolution. This works also on linux if you produce .ps file. Hope it helps, AK