.
.
Works fine for me.
I produced a graph in Stata and then exported it as an -eps- file:
graph export "$reports\hdist.eps", as(eps) replace
The following -tex- file was reads this -eps- file OK. I'm using MikTex
2.7. This assumes that the -eps- file is in the same directory as the
-tex- file.
\documentclass[a4paper,twoside,11pt]{report}
\usepackage{graphicx}
\begin{document}
\begin{figure}[htbp]
\centering
\includegraphics[width=4.9in]{hdist.eps}
\caption{Distribution of self-reported height (cm) in men and
women}
\label{height}
\end{figure}
\end{document}
______________________________________________
Kieran McCaul MPH PhD
WA Centre for Health & Ageing (M573)
University of Western Australia
Level 6, Ainslie House
48 Murray St
Perth 6000
Phone: (08) 9224-2701
Fax: (08) 9224 8009
email: [email protected]
http://myprofile.cos.com/mccaul
http://www.researcherid.com/rid/B-8751-2008
______________________________________________
Epidemiology is so beautiful and provides such an important perspective
on human life and death,
but an incredible amount of rubbish is published. Richard Peto (2007)
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Patrick J.
Flaherty
Sent: Tuesday, 5 May 2009 1:46 PM
To: [email protected]
Subject: st: Stata graphs in LaTeX
I am using Stata 10.1 fully updated in a Windows environment (Vista).
I do not believe my LaTeX software (or is it my computer) is .eps
compatible. While Michael Mitchell's graph2tex runs great in Stata it
produces .eps files which my LaTeX can't read.
I try running Martin Weiss' epspdf program but I get an error from
GhostScript that filesize must be less than 2Gb.
Why doesn't Stata export .jpg files? Or why can't LaTeX (I know this
isn't
a LaTeX listserve, I apologize) read .wmf files?
Patrick J. Flaherty
Coventry, Connecticut
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/