Statalist The Stata Listserver


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

st: [Fwd: Stata graphs to Latex with Graph2tex command]


From   Suzy <[email protected]>
To   [email protected]
Subject   st: [Fwd: Stata graphs to Latex with Graph2tex command]
Date   Wed, 03 May 2006 16:38:27 -0400

I know there was some discussion recently on 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index