mactex 配置emacs和auctex

无意中发掘的一个好东东
http://superuser.com/questions/171681/installing-auctex-1-86-over-emacs-app-in-os-x

狂赞作者!
  1. Install the MacTeX-2010 distribution package
  2. Download OS X emacs, place in /Applications
  3. Download the Auctex tarball
  4. Go to the Auctex directory, configure with the command:

  1. ./configure --with-emacs=/Applications/Emacs.app/Contents/MacOS/Emacs --with-lispdir=/Applications/Emacs.app/Contents/Resources/site-lisp --with-texmf-dir=/usr/local/texlive/texmf-local
texmf-local改成相应的最新的texmf地址。这一步最重要。
最后稍微修改preview-latex的指令。

大功告成。睡觉去也!

“bin/sh: latex: command not found”问题解决方案:

I had to set the path for Emacs: it was different from the one that was being used from the terminal. What I did was:

  • In Terminal I looked at then value for env (specifically PATH)%导入PATH值
  • In Emacs, I typed M-x setenv, variable = PATH%设置emacs环境变量名:PATH
  • I pasted in the same value that I had in terminal and now I can compile with no problems.%把环境变量PATH的值复制进去即可。;
    ;;
    ;;改变默认路径
    (setenv "HOME" "/Users/baby")
    (setenv "PATH" "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/texbin:/usr/texbin:/usr/local/texlive/2013/bin/x86_64-darwin")
    ;;set the default file path
    (setq default-directory "~/")

转载于:https://my.oschina.net/rockbaby/blog/171296

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值