Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

RE: Antwort: re: st: Graph png format - differences in scaling between vers. 10 and 11


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: Antwort: re: st: Graph png format - differences in scaling between vers. 10 and 11
Date   Tue, 16 Mar 2010 17:58:49 +0100

<>

Don´t forget the -ifpdf- package for Latex, which allows you to condition on
the kind of compiler used on the document. So I have Stata a) save in .gph
b) save as .eps c) !epstopdf  every single graph destined for inclusion in a
latex document. This approach gives me total freedom how I want to compile
the document later on...


HTH
Martin


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Johannes Geyer
Sent: Dienstag, 16. März 2010 14:09
To: statalist@hsphsun2.harvard.edu
Subject: Antwort: re: st: Graph png format - differences in scaling between
vers. 10 and 11

Thank you Maarten! My workaround was a seperate step - your solution is 
great!

Johannes

----------------------
Johannes Geyer
Deutsches Institut für Wirtschaftsforschung (DIW Berlin)
German Institute for Economic Research 
Department of Public Economics
DIW Berlin
Mohrenstraße 58
10117 Berlin
Tel: +49-30-89789-258

owner-statalist@hsphsun2.harvard.edu schrieb am 16/03/2010 13:58:42:

> 
> --- On Tue, 16/3/10, Kit Baum wrote:
> > If you're doing Beamer/LaTeX, why not use .eps? It is fully
> > scalable and supported by any LaTeX implementation.
> 
> The problem I run into is that beamer presentations need to be
> compiled using pdfLaTeX, which does not take .eps (at least it
> used to complain when I tried to do that the last time I tried,
> probably a couple of years ago). 
> 
> So I tend to call ps2pdf (part of ghostscrip, use google to find
> that) from within my .do file, like in the example below:
> 
> *------------------ part of .do file -----------------------
> graph export mean_imp.eps, replace
> capture rm mean_imp.pdf
> !ps2pdf -sPAPERSIZE -dDEVICEWIDTHPOINTS#432 -dDEVICEHEIGHTPOINTS#288
> mean_imp.eps mean_imp.pdf
> *------------------- end part of .do file -------------------- 
> 
> and than include the graph like this:
> 
> *-------------------- part of LaTeX/beamer file ---------------
> \begin{frame}
>     \frametitle{mean median mode imputation}
>     \begin{figure}[tb]
>         \centering
>         \includegraphics[width=\textwidth]{mean_imp.pdf}
>       \end{figure}
> \end{frame}
> *------------------ end part of LaTeX/beamer file --------------
> 
> I have no idea if this is better or worse than using .png, it is
> just a workaround that has worked for me.
> 
> Hope this helps,
> Maarten
> 
> --------------------------
> Maarten L. Buis
> Institut fuer Soziologie
> Universitaet Tuebingen
> Wilhelmstrasse 36
> 72074 Tuebingen
> Germany
> 
> http://www.maartenbuis.nl
> --------------------------
> 
> 
> 
> 
> *
> *   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/


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


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index