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

# st: About produce graph in Latex format

 From "Lynn Lee" To Subject st: About produce graph in Latex format Date Wed, 19 Sep 2012 18:42:25 +0800

Dear all,

I am currently working with generating graph in Latex format. The software I
http://mirror.neu.edu.cn/CTAN/systems/windows/protext/  with ProTeXt
files.The Latex file installed on my computer is “MiKTeX2.8”. I also write
“\usepackage{graphicx}” in Texmaker preamble. I also typed “sjlatex
update using C:\Users\sony\desktop\Latex” and copy the file in
“C:\Stata11\ado\personal\ stlog” (because when I typed “sjlatex install
using” , Stata11 told me the sjlatex already exists and
C:\Stata11\ado\personal is not a writable file. I thought I installed this
before, and can only update it.)The command I write in Stata11 is as
follows:
sysuse auto,clear
cd "C:\Users\sony\desktop\Latex " (the path where I stored my Latex
files)
scatter price mpg
graph2tex, epsfile(scatter) caption(pic) label(scatter) ht(3)
Stata11 gives me the following:     % exported graph to scatter.eps
% We can see in Figure \ref{fig:scatter} that
\begin{figure}[h]
\begin{centering}
\includegraphics[height=3in]{scatter}
\caption{pic}
\label{fig:scatter}
\end{centering}
\end{figure}

TeXworks gives me the reminder----- “\usepackage{graphicx}”. But I find
the scatter.esp file is in my “Latex” file , but I still can not get latex
format graph. Now, I am stuck here. I really do not know why.

Any suggestion is greatly appreciated.

Best Regards,
Lynn Lee

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