连老师:
我按照您的回帖重新检查了路径,但是,我输入“cd path" Stata11 提示 “unable to change to path
r(170);”。 而且,Latex 还是出错,“! LaTeX Error: File `scatter' not found.”。
我按照您的讲义“Stata 与LATEX 的完美结合” 输入了如下命令:
sysuse auto
cd "C:\Users\desktop\Latex" (这是我的LAtex文档的路径)
scatter price mpg
graph2tex, epsfile(scatter) caption(pic) label(scatter) ht(3)
Stata11窗口显示:% 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}
cd C:\Stata11\ado\personal\stlog
但是有一点我不明白,stlog 是什么?
当我输入“sjlatex install using” 时,Stata 告诉我sjlatex 已经存在,然后我就改用命令“sjlatex update using”,把文件安装到我的Latex文件夹里,然后再把这些文档复制到我自己在Stata11 中创建的stlog文件夹里。 我在Latex 的preamble 中已经写了\usepackage{graphicx}。所有这些操作没有让Latex 生成scatter 的这张图型。 但我能在我的Latex 文件夹里看到.esp文件。(我用的latex是英文版的Texmaker.)
请连老师指点我的操作错在哪里?谢谢。