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.

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

From |
"Lynn Lee" <lynn09v@gmail.com> |

To |
<statalist@hsphsun2.harvard.edu> |

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 use for Latex is Texmaker downloaded from 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} Then, I typed “cd C:\Stata11\ado\personal\stlog”. 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/

**Follow-Ups**:**Re: st: About produce graph in Latex format***From:*Ronnie Babigumira <rb.glists@gmail.com>

- Prev by Date:
**st: GLLAMM: Predict Class Membership** - Next by Date:
**Re: st: GLLAMM: Predict Class Membership** - Previous by thread:
**st: GLLAMM: Predict Class Membership** - Next by thread:
**Re: st: About produce graph in Latex format** - Index(es):