Statalist


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

Re: st: Graph Quality in Latex


From   Antoine Terracol <[email protected]>
To   [email protected]
Subject   Re: st: Graph Quality in Latex
Date   Fri, 06 Jun 2008 21:54:19 +0200

Martin,

I wrote a little .ado file that -graph export-s to .eps and calls eps2pdf (http://www.ctan.org/tex-archive/support/eps2pdf/) to convert the .eps file to .pdf (using the same fine name), which I then include for use with pdfLaTeX

------epspdf.ado-------------

cap prog drop epspdf
prog define epspdf
syntax anything [, replace]

if "`replace'"=="replace" {
capture erase "`1'.pdf"
}
graph export "`1'.eps", `replace'
winexec "C:\program files\eps2pdf\eps2pdf.exe" /f="`1'"
di as text "(file `1'.eps converted to PDF format)"
end
---------------------

example:


. sysuse auto, clear
(1978 Automobile Data)

. twoway scatter price mpg

. epspdf "C:/temp/test_graph" , replace
(note: file C:/temp/test_graph.eps not found)
(file C:/temp/test_graph.eps written in EPS format)
(file C:/temp/test_graph.eps converted to PDF format)


Best,
Antoine


Martin Weiss wrote:

Dear Listers,

I am wondering whether there is a way to improve on the poor performance
that png graphs achieve when compiled with pdflatex. Does anyone know which
graph type (must be available in Stata 10) performs better in this respect?
I am not fussy when it comes to such issues but what I currently get is not
really presentable...


Thanxx in advance,
Martin Weiss
_________________________________________________________________

Diplom-Kaufmann Martin Weiss
Mohlstrasse 36
Room 415
72074 Tuebingen
Germany

Fon: 0049-7071-2978184

Home: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1130

Publications: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1131

SSRN: http://papers.ssrn.com/sol3/cf_dev/AbsByAuth.cfm?per_id=669945


*
*   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/

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