オリジナルの YaTeX は UTF-8 に対応していないが、 少しいじるだけでOKであるそうだ。 http://oku.edu.mie-u.ac.jp/~okumura/texwiki/?YaTeX#d56b9bcfを見よ。
yatexlib.el を少しいじるだけ (これは c:¥meadow¥packages¥lisp¥yatex にある)。 Meadow を起動して、 M-x byte-compile-file で yatexlib.el を指定して、 yatexlib.elc を作っておく。
| 変更点 |
mathpc% pwd
/cygdrive/c/meadow/packages/lisp/yatex
mathpc% diff -c yatexlib.el.org yatexlib.el
*** yatexlib.el.org Fri Oct 21 16:54:41 2005
--- yatexlib.el Mon Jul 2 10:51:46 2007
***************
*** 46,52 ****
(YaTeX-dos (if (boundp '*sjis-dos*) *sjis-dos* *sjis*dos))
(YaTeX-macos (if (boundp '*sjis-mac*) *sjis-mac* *sjis*mac))
(t *sjis*)))
! '(2 . *junet*) '(3 . *euc-japan*)))
((and YaTeX-emacs-20 (featurep 'mule))
;;(cdr-safe(assq 'coding-system (assoc "Japanese"
language-info-alist)))
(list '(0 . no-conversion)
--- 46,52 ----
(YaTeX-dos (if (boundp '*sjis-dos*) *sjis-dos* *sjis*dos))
(YaTeX-macos (if (boundp '*sjis-mac*) *sjis-mac* *sjis*mac))
(t *sjis*)))
! '(2 . *junet*) '(3 . *euc-japan*) '(4 . *utf-8*)))
((and YaTeX-emacs-20 (featurep 'mule))
;;(cdr-safe(assq 'coding-system (assoc "Japanese"
language-info-alist)))
(list '(0 . no-conversion)
***************
*** 56,62 ****
((member 'shift_jis (coding-system-list))
'shift_jis-unix)
(t 'sjis)))
'(2 . iso-2022-jp-unix)
! '(3 . euc-jp-unix))))
"Kanji-code expression translation table.")
(defvar YaTeX-inhibit-prefix-letter nil
"*T for changing key definitions from [prefix] Letter to [prefix]
C-Letter.")
--- 56,63 ----
((member 'shift_jis (coding-system-list))
'shift_jis-unix)
(t 'sjis)))
'(2 . iso-2022-jp-unix)
! '(3 . euc-jp-unix)
! '(4 . utf-8-dos))))
"Kanji-code expression translation table.")
(defvar YaTeX-inhibit-prefix-letter nil
"*T for changing key definitions from [prefix] Letter to [prefix]
C-Letter.")
mathpc%
|