Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: graphs into latex lose their text


From   Nick Sanders <[email protected]>
To   [email protected]
Subject   Re: st: graphs into latex lose their text
Date   Fri, 18 Feb 2011 15:04:08 -0800

Hi Steve,

First of all, why use graph2tex? Stata has  the ability to save a graph as an eps file in all versions (Mac, Unix, and Windows), so it seems that there's no need to introduce an extra possible source of code incompatibility. For example:

sysuse auto
scatter mpg weight
graph export mpg_weight.eps, replace

Now you have an eps file without that extra step.

As for adding things into Beamer, try using 

\includegraphics[height=3D3in]{graph1.eps}

I think in some cases adding the file extension can actually make a difference. But that's just a guess.

-Nick

--
Nicholas J. Sanders, Ph.D.
Postdoctoral Fellow
Stanford Institute for Economic Policy Research
366 Galvez St, Room 228
Stanford, CA 94305

On Feb 18, 2011, at 1:17 PM, Porter, Stephen R [EL PS] wrote:

> When I try to insert a Stata graph into my Beamer presentation, the graph appears but the text (legend, etc.) does not. I used graph2tex to generate the .eps file, and when I read the .eps file into Adobe Professional, the graph looks fine.  Here's the code, I'm using the graphicx package:
> 
> \begin{frame}
> \begin{figure}[h]
> \begin{centering}
> \includegraphics[height=3D3in]{graph1}
> \end{centering}
> \end{figure}
> \end{frame}
> 
> Thanks,
> Steve
> 
> 
> --
> Stephen R. Porter
> Associate Professor of Research and Evaluation 
> Department of Educational Leadership and Policy Studies 
> N232-A Lagomarcino Hall, Iowa State University 
> Ames, IA 50011 
> Phone: 515-428-0008 
> Fax: 515-294-7635
> Email: [email protected] 
> Website: http://www.stephenporter.org 
> 
> 
> 
> *
> *   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index