2007-10-28

TeX 環境設定

TeX まわりのインストール
$ yum -y install tetex* gv gsvirew xpdf
AUCTeX のインストール
http://pop-club.hp.infoseek.co.jp/emacs/auctex-jp.html
$ cvs -z3 -d:pserver:anonymous@cvs.sv.gnu.org:/cvsroot/auctex co auctex
$ cd auctex
$ ./autogen.sh
$ ./configure
$ make && make install

.emacs の設定
http://tmcosmos.org/linux/fedora/7/settings07.html
;===================================
; AUCTeX
;===================================

(require 'tex-site)
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)
(setq TeX-default-mode 'japanese-latex-mode)
(setq japanese-TeX-command-default "pTeX")
(setq japanese-LaTeX-command-default "pLaTeX")
(setq japanese-LaTeX-default-style "jsarticle")
(setq preview-image-type 'dvipng)
(setq TeX-file-extensions '("tex" "sty" "cls" "ltx" "texi" "texinfo" "dtx"))
(setq kinsoku-limit 10)
(setq LaTeX-indent-level 4)
(setq TeX-output-view-style '(("^dvi$" "." "/usr/bin/pxdvi %d")))
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
4. AUCTeX の使い方
http://tmcosmos.org/linux/fedora/7/settings07.html
C-c C-c : コンパイルやプレビュー
C-c C-s : 節などを追加
C-c C-e : 式や箇条書きなどの環境を追加
C-c C-p C-d : Emacs内で図や数式をプレビュー (preview-latex)
C-c C-p C-p : preview-latex モードで、カーソルの場所だけプレビュー
C-c C-p C-c C-d : preview-latex モードの解除
C-c C-o C-f : Fold(footnoteやciteなどを短縮表示)モードへ入る
C-c C-o C-b : バッファ全体のFolding
C-c C-o C-r : リージョンのFolding
C-c C-o C-o : 状況に応じてFolding/Unfolding
C-c C-o b : Foldモードの解除



0 件のコメント: