Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: stata graphs in beamer


From   "Eva Poen" <[email protected]>
To   <[email protected]>
Subject   st: Re: stata graphs in beamer
Date   Wed, 26 Apr 2006 14:25:37 +0100

Hi,

being a Stata/MiKTeX/Beamer user myself, here is what works for me:

In do-files, I have

graph export mygraph.eps, as(eps) preview(off) replace
** epstopdf.exe comes with MiKTeX.
** Stata for Windows cannot produce pdf.
! epstopdf mygraph.eps


In the beamer presentation, I have

\includegraphics[width=0.9\linewidth]{mygraph}

inside a frame. 

Note that the \includegraphics statement does not have a file extension; pdflatex will automatically pick the pdf graph, and latex will pick the eps graph. For this to work, both graphs need to sit in a folder where latex/pdflatex finds them.

Regards, 
Eva Poen

>>>




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index