从源码安装auctex

从源码安装auctex
1.首先从网站下载源码包
2.进行安装,执行以下命令
  ./configure
  sudo make
  sudo make install
3.在.emacs中加入下面代码
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)
(add-hook 'LaTeX-mode-hook #'LaTeX-install-toolbar)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode
(add-hook 'latex-mode-hook 'turn-on-reftex) ; with Emacs latex mode
(setq TeX-auto-save t)
(setq TeX-parse-self t)
4.启动.tex文件即可

本文出自 “cmdblock” 博客,转载请与作者联系!

你可能感兴趣的:(职场,emacs,休闲,auctex)