从stackoverflow上找到的,已经安装成功,借此留存下

Here's how I got Auctex to work with pure Emacs:

  1. Install the MacTeX 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:

    ./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
    
  5. Execute:

    make; sudo make install
    

    to install the elisp files inside the Emacs.app, the info files to /usr/local/share/info, etc.

  6. Edit your ~/.emacs file to load Auctex/preview-latex, and point Emacs to your Latex executables:

    (setenv "PATH" (concat "/usr/texbin:/usr/local/bin:" (getenv "PATH")))
    (setq exec-path (append '("/usr/texbin" "/usr/local/bin") exec-path))
    (load "auctex.el" nil t t)
    (load "preview-latex.el" nil t t)
    
  7. Auctex and preview-latex should work now. One thing to keep in mind: with older versions of Auctex, the ps pathway seems to work better than pdf; if preview-latex images aren't appearing with the error "/typecheck in --setfileposition--", try disabling "Generate PDF" via "Menu Bar -> Command -> TeXing option".


Update: Steps (2--5) can be replaced with the Homebrew package manager:

brew install emacs --cocoa
brew install auctex

The other steps are still correct. The Emacs "Generate PDF" option now works for me

注意,其中在安装Auctex前,要先准备好环境变量,不然没法编译AucTex:

2016-04-22更新:

auctex的configure配置如下:

./configure --with-emacs=/Applications/Emacs.app/Contents/MacOS/Emacs --with-lispdir=/Users/kirchhoff/.emacs.d/lisp  --with-texmf-dir=/usr/local/texlive/texmf-local

可以安装到.emacs.d目录里

此外还有$HOME下的.zshenv 配置如下:

PATH=/usr/local/texlive/2015/bin/x86_64-darwin:$PATH;export PATH
MANPATH=/usr/local/texlive/2015/texmf-dist/doc/man:$MANPATH;export MANPATH
INFOPATH=/usr/local/texlive/2015/texmf-dist/doc/info:$INFOPATH;export INFOPATH

OSX 安装MacTex Emacs+Auctex相关推荐

  1. Emacs+Auctex+TexLive 便携式

    安装好Emacs和Auctex 最终配置成功的是可以随意移植,携带的编辑器 1. 安装emacs和Auctex 在windows下的安装实际上就是解压到某个目录即可 2.安装texLive 官网有安装 ...

  2. windows安装gnu_在Windows上安装GNU Emacs

    windows安装gnu GNU Emacs是为各种程序员设计的流行文本编辑器. 因为它是在Unix上开发的,并且在Linux上广泛使用(并且随macOS一起提供),所以人们有时没有意识到它也可用于M ...

  3. 在MacOS上安装MacTex

    现在,TeX\TeXTE​X已经成为科研人员撰写科技论文的神器之一.在易用性和美观方面,Mac亦是众多科技工作者选择之一.在Mac上,我们通常会使用与TexIive同源的MacTex编写TeX\TeX ...

  4. Mac 安装Mactex教程

    前言 这两个下载mactex花了不少时间,参考了不少文章,有的推荐texstudio.texpad等等,最终还是比较喜欢mactex+sublime text3+skim,环境配置方面并不算麻烦,只要 ...

  5. 2021-08-07 解决安装MacTeX后界面显示法语问题

    解决安装MacTeX后界面显示法语问题 描述:初次安装MacTex发现界面显示法语,在MacOS系统设置的语言与地区中将该App设置为英语后,仍然显示法语 解决方法 打开设置-语言与地区 添加英语与法 ...

  6. Mac OSX 安装qemu

    参考: Installing QEMU on OS X Homebrew Mac OSX 安装qemu 1.Install Homebrew: /usr/bin/ruby -e "$(cur ...

  7. python2.7安装pytorch_Pytorch如何安装,Linux安装Pytorch,OSX安装Pytorch教程

    Pytorch目前提供了Linux,Mac Os安装,官方提供了自定义安装方法,今天我们汇总一下Pytorch如何安装,Linux安装Pytorch,OSX安装Pytorch教程以及我们可以根据PIP ...

  8. Macos 安装MacTex SublimeText3 Skim环境

    所以很多老师都要求学生用Latex来写论文.那么问题来了,latex要在哪里写?有像word一样的编辑器吗?答案是肯定的.市面上的latex编辑器不下20种,各种系统都有,常见的有:LyX.TeXwo ...

  9. Emacs AucTex

    Table of Contents 1 默认安装texlive套件 2 下载AUCTex和CDLatex安装包 3 解压 4 安装 5 配置.emacs文件 5.1 Emacs加载AUCtex 5.2 ...

最新文章

  1. linux C++安装并编译boost库
  2. linux6 yum安装mysql_linux CentOS6.5 yum安装mysql5.6
  3. DARPA可解释AI研究(XAI计划)的4年回顾与经验总结
  4. 再次探扩展-对xVal进行扩展解决验证不同步的问题
  5. python代码需要背吗-Python面试必须要看的15个问题
  6. lm723大电流可调电源电路图_TE:大电流电源连接器
  7. “访问 IIS 元数据库失败”的错误信息
  8. MagicRecord For IOS API深层解析
  9. 10-C++远征之模板篇-学习笔记
  10. 译文:如何使用SocketAsyncEventArgs类(How to use the SocketAsyncEventArgs class)
  11. 取得人生成功的40条定律
  12. 关于new FormData() 对象的用法
  13. Raki的读paper小记:ELECTRA: PRE-TRAINING TEXT ENCODERS AS DISCRIMINATORS RATHER THAN GENERATORS
  14. php smarty程序设计,Smarty程序设计-动态文件操作
  15. 有用的在线图片处理网站(证件照替换背景蓝色)
  16. PayPal如何提现人民币?PayPal提现到国内银行的最新教程!
  17. Android仿QQ列表滑动
  18. Poco库使用:文件压缩和解压缩
  19. dubbo实战之四:管理控制台dubbo-admin
  20. 2020-11-12杂谈

热门文章

  1. shell开启飞行模式_手机飞行模式竟然有这些神奇功能?!别说小坊没告诉你
  2. Kotlin MVVM入门
  3. 修改浏览器html内容吗,谷歌浏览器如何任意修改网页内容?想改啥就改啥~截屏不用PS改了...
  4. 潜意识的力量 (四)
  5. 解剖华为--再读《华为真相》
  6. imx6q pwm3 修改占空比
  7. 解决 kinter.TclError: bad listbox index
  8. SQL29 计算用户的平均次日留存率
  9. python3换行输出_python怎么输出换行
  10. unity 阳光插件_史上第一款人工智能后期调色插件Luminar!连PS都被甩了几条街