RE: Re: Is there any productive way to use Mathematica + pdfLaTeX?
- To: mathgroup at smc.vnet.net
- Subject: [mg47472] RE: [mg47434] Re: Is there any productive way to use Mathematica + pdfLaTeX?
- From: "Owen, HL (Hywel)" <H.L.Owen at dl.ac.uk>
- Date: Tue, 13 Apr 2004 06:26:23 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Our group messed around for a while trying to get as simple a LaTeX installation on Windows as possible. We finally settled on MikTeX/WinEdt. WinEdt costs a few tens of dollars per license, but is well worth it (IMHO) to avoid hassle. An installation guide is given at: http://www.astec.ac.uk/ap/software/latex.html There is also a guide to how to get .eps files into your documents - the procedure is to insert them into the .tex file, then do: .tex -> .dvi -> .pdf To get your Mathematica plots into yout LaTeX documents, export them as .eps. It's about the simplest procedure we've found. If there is a simpler/better tool for .tex editing out there, we''d like to hear about it! Hywel > -----Original Message----- > From: ankowar at yahoo.com [mailto:ankowar at yahoo.com] To: mathgroup at smc.vnet.net > Sent: 12 April 2004 08:45 > To: mathgroup at smc.vnet.net > Subject: [mg47472] [mg47434] Re: Is there any productive way to use > Mathematica + > pdfLaTeX? > > > 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 >