连老师:
我按照您的回帖重新检查了路径,但是,我输入“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