blob: 7f47946f0da80c84b5ddf1cad070a21ecfdbb26a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
;;
;; tLaTeX setup
;;
(defun Thai-LaTeX-mode-hook ()
(or (assoc "tLaTeX" TeX-command-list)
(setq TeX-command-list
(cons
(list "tLaTeX" "cp -p %t _%t; swath -f latex < _%t > %t; latex '\\nonstopmode\\input{%t}'; cp -p _%t %t; rm _%t" 'TeX-run-LaTeX nil t)
TeX-command-list))))
(add-hook 'LaTeX-mode-hook 'Thai-LaTeX-mode-hook)
|