Chinaunix首页 | 论坛 | 博客
  • 博客访问: 891756
  • 博文数量: 113
  • 博客积分: 3160
  • 博客等级: 少校
  • 技术积分: 1801
  • 用 户 组: 普通用户
  • 注册时间: 2011-08-19 10:09
文章分类

全部博文(113)

分类: 项目管理

2012-09-04 18:58:03

   
1 确保已安装texlive套件

这个应该是首先的条件,如果你还没有安装texlive。可以参考这篇博文:

http://blog.csdn.net/ustc_dylan/article/details/6196129

 

2 下载AucTex和CDLatex安装包
 

到该网站下载:

 
 
3 解压

  1. tar zxf auctex-11.86.tar.gz
  2. cd auctex-11.86
 
4 安装



  1. ./configure --with-emcs ;; 加上这个选项的目的就是让emacs识别
  2. make
  3. sudo make install

 
5 配置.emacs文件
 
5.1 Emacs加载Auctex


  1. (load "auctex.el" nil t t)
  2. (load "preview-latex.el" nil t t)
  3. (setq Tex-auto-save t)
  4. (setq Tex-parse-self t)
  5. (setq-default Tex-master nil)

 
5.2 设置xelatex为默认编辑命令,evience为默认阅读器
 

  1. (setq Tex-output-view-style
  2. (quote (("^pdf$" "." "evince &o %(outpage)"))))

  3. (add-hook 'LaTex-mode-hook
  4. (lambda()
  5. (add-to-list 'Tex-command-list '("XeLaTex" "%`xelatex%(mode)'
  6. %t" Tex-run-Tex nil t))
  7. (setq Tex-command-default "XeLaTex

6 添加CDLatex辅模式
 
6.1 下载cdlatex.el
 

这个直接在网上搜索就行了,我就不说了。

 

6.2 复制到.emacs.d/下


  1. cp cdlatex.el ~/.emacs.d/
 
6.3 在.emacs中添加如下配置
 

  1. (require 'cdlatex)

  2. ;; 将cdlatex设置为AUCtex的辅模式
  3. (add-hook 'LaTex-mode-hook

阅读(9418) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~