Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Stata --> PDFLaTeX, or, when will we get a PDF translator?


From   [email protected]
To   [email protected]
Subject   Re: st: Stata --> PDFLaTeX, or, when will we get a PDF translator?
Date   Sat, 8 Nov 2003 10:25:03 +0100





Indeed, it would be great if Stata could export graphs to PDF under non-MAC
systems too.

However, under Windows, I've used the command-line converter -epstopdf-
(available in most LaTeX distributions I believe) without any problem. That
is: I export my Stata graph to EPS, call the external command -epstopdf- to
convert it to PDF, and the PDF file can be imported and PDFLaTeX-ed without
a glitch.

This can be done a one-step procedure with the following programme. Use
-grexportpdf using ... - instead of the official -graph export ...-

Best wishes

Philippe


*! grexportpdf 1.0, Ph.Van Kerm, Aug-2003
* this command exports current graph to PDF (requires epstopdf installed!!)
*  grexportpdf using path/filename
  cap pr drop grexportpdf
  pr def grexportpdf
    version 8
    syntax using/
    loc using = subinstr("`using'",".pdf","",.)
    gr export "`using'.eps" , replace
    !epstopdf "`using'.eps"
    erase "`using'.eps"
  end





**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept for the presence of computer viruses.

**********************************************************************

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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