Skip to content

Instantly share code, notes, and snippets.

@henry0312
Created September 25, 2011 12:14
Show Gist options
  • Save henry0312/1240549 to your computer and use it in GitHub Desktop.
Save henry0312/1240549 to your computer and use it in GitHub Desktop.
.emacs for YaTeX
;; YaTeX
(setq auto-mode-alist
(cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist))
(autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t)
(setq load-path (cons (expand-file-name "/Users/henry/.emacs.d/site-lisp/yatex") load-path))
(setq tex-command "~/Library/TeXShop/bin/platex2pdf-utf8" ; eucの場合はplatex2pdf-euc
dvi2-command "open -a Preview") ; Preview.appを使ってPDFを開く
(setq YaTeX-kanji-code 4) ; (setq YaTeX-kanji-code nil)の方がいいかもしれない。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment