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" <>
To   <>
Subject   st: Re: stata graphs in beamer
Date   Wed, 26 Apr 2006 14:25:37 +0100


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


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.

Eva Poen


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