Statalist The Stata Listserver


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

st: Stata graphs to Latex with Graph2tex command


From   Suzy <scott_788@wowway.com>
To   Statalist <statalist@hsphsun2.harvard.edu>
Subject   st: Stata graphs to Latex with Graph2tex command
Date   Wed, 03 May 2006 16:28:35 -0400

I know there was some discussion recently re: LaTeX, but my question is not regarding Beamer. I am using LaTeX with no problem, having converted word files, math equations, figures, etc.. I am now trying to convert and insert a simple Stata graph using the graph2tex command. This is my Stata code below. I copied and pasted the tex code output provided by Stata into my text editor (teXnicCenter). The graph was not there. I tried adding the .eps to Stata1 to see if that would work, but it did not. Any insight as to why I am not able to successfully convert/preview the graph in LaTeX would be very much appreciated. Thank you!

scatter Yvar Xvar, sort

. graph2tex, epsfile(Stata1)
% exported graph to Stata1.eps


\begin{figure}[h]
\begin{centering}
\includegraphics[height=3in]{Stata1}
\end{centering}
\end{figure}


Suzy

*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index