全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 统计软件培训班VIP答疑区
1740 1
2012-09-19
连老师:
       我按照您的回帖重新检查了路径,但是,我输入“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.)

请连老师指点我的操作错在哪里?谢谢。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2012-9-20 22:04:03
是 cd $path 还是 cd path?
global path "" 你已经事先定义好了吗?

关于文件路径的设定,还认真看看这个帖子里的说明。
https://bbs.pinggu.org/thread-1068695-1-1.html
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群