如果你不需要preview,请是用--disable-preview。
./configure
--prefix=/home/xrn/emacs/site-lisp/auctex \ # 存放man, info等目录的位置
--with-lispdir=/home/xrn/emacs/site-lisp \ # 安装目录的上一层目录
--with-packagelispdir=/home/xrn/emacs/site-lisp/auctex \ # 安装到那里
--with-texmf-dir=/home/xrn/.texfm-var # texmf的位置,用于安装preview
这几个参数的具体含义可以参考这里。configure完成之后,直接执行:
make安装完成之后的配置就容易多了,可以参考这里。
make install
下面是我的配置(配合了reftex和cdlatex):
;;{{{ LaTeX settings
;;start AucTeX
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)
;(setq preview-image-type 'pnm)
;; If you want to make AUCTeX aware of style files and multi-file
;; documents right away
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq TeX-electric-escape t)
(setq-default TeX-master nil)
;; configure CDLaTeX
(autoload 'cdlatex-mode "cdlatex" "CDLaTeX Mode" t)
(autoload 'turn-on-cdlatex "cdlatex" "CDLaTeX Mode" nil)
;; I just want to open outline-minor-mode
(defun my-LaTeX-mode ()
(outline-minor-mode)
(abbrev-mode 1)
(turn-on-reftex)
;; integrate RefTeX with AUCTeX
(setq reftex-plug-into-AUCTeX t)
(turn-on-cdlatex))
;; Yeah, start my-LaTeX-mode function
; with AUCTeX LaTeX mode
(add-hook 'LaTeX-mode-hook 'my-LaTeX-mode)
; with Emacs latex mode
(add-hook 'latex-mode-hook 'my-LaTeX-mode)
;;}}}
没有评论:
发表评论