[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Stata graphs in LaTeX

From   Neil Shephard <>
Subject   Re: st: Stata graphs in LaTeX
Date   Tue, 5 May 2009 13:31:16 +0100

On Tue, May 5, 2009 at 6:45 AM, Patrick J. Flaherty <> wrote:
> 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.

Thats strange, since EPS support has been available for a very long time.

> 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?

Well the algorithm used in the compression of JPG is (purportedly)
proprietary and including support would mean an increase in the
license fee you pay (see although the US patent
may have expired now).

Stata supports several different formats depending on your platform
(see -man graph export-).

Probably the most amenable if you can't get .eps files to work is
Portable Network Graphics (.png).

I've had no problems inserting PNG files into my LaTeX documents
(using both TeXk v 3.141592 that ships with Cygwin or TexLive 2008 (
Tex v3.1415926) on my GNU/Linux distribution).

LaTeX version and examples of your code may illicit more specific advice.

"The combination of some data and an aching desire for an answer does
not ensure that a reasonable answer can be extracted from a given body
of data." ~ John Tukey (1986), "Sunset salvo". The American
Statistician 40(1).

Email -
Website -
Photos -

*   For searches and help try:

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