作者kosinyj (K)
看板Editor
标题[emacs] pdflatex
时间Fri Apr 2 15:33:27 2010
大家好
小弟又碰到一个 emacs的问题:
使用 TeX-mode 时 可以 C-c C-c 选择 LaTeX
进行 compile 而且错误时 会回报错误讯息
但是却不能使用 PDFLaTeX
google後
得到了一个解决方案
;; AUC-Tex
; Defining a couple of additional commands
(add-hook 'LaTeX-mode-hook
(function
(lambda ()
(add-to-list 'TeX-command-list
(list "PDFLaTeX" "pdflatex %s.tex"
'TeX-run-command nil t))
(add-to-list 'TeX-command-list
(list "ViewPDF" "xpdf %s.pdf"
'TeX-run-command nil t))
(add-to-list 'TeX-command-list
(list "DVIPS" "dvips -o %s.ps %s.dvi"
'TeX-run-command nil t))
(add-to-list 'TeX-command-list
(list "Clean" "rm %s.log %s.aux %s.out %s.idx"
'TeX-run-command nil t))
)))
ref:
http://old.pubhealth.ku.dk/bsa/software/applications/index.html
但是 如果 tex 中有问题,emacs并不会回应或停止compile
不知道有没有人 有看过解决方案呢?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.243.226
1F:→ kosinyj:版本:emacs-snapshot, auctex (11.83-7.3) 04/02 15:34