[Cjk] AUC TeX Japanese Maintainer
Janusz S. Bień
jsbien at mimuw.edu.pl
Sun Dec 8 01:05:35 CET 2002
On Sat, 7 Dec 2002 David.Kastrup at t-online.de (David Kastrup) wrote:
> Masayuki Ataka <ataka at milk.freemail.ne.jp> writes:
>
> > Well, it's my honor to take over the Japanene maintainer,
> > if there is no opposition from the others.
>
> Well, if somebody else is all eager and geared up for working on
> tex-jp.el, we'll be hearing from him in good time, I guess.
>
> > Just want to know who has the responsibility of tex-jp.el,
> > because I have somthing to plan for Japanese package.
>
> Go for it. As I said, we might be haggling over interfaces: I
> sometimes have ideas how to do things right, but I don't think I'll
> be too much in the way: the whole AUC TeX base is not as "pure" that
> I would worry much about "tainting" it.
>
> --
> David Kastrup, Kriemhildstr. 15, 44793 Bochum
>
Please include the support for Werner Lemberg's CJKTeX. It is
available on CTAN and also as the cjk-latex Debian package: the
relevant files are
/usr/share/emacs/site-lisp/cjkspace.el
/usr/share/emacs/site-lisp/cjktilde.el
/usr/share/emacs/site-lisp/cjk-enc.el
but the crucial code relevant to AUC TeX is hidden in
/usr/share/doc/cjk-latex/cjk-enc.doc.gz
Here it is:
-----------------------------------------------------------
Usage with AUCTeX
-----------------
Append this to your .emacs file to have special CJK support with AUCTeX:
(defun TeX-run-CJK-LaTeX (name command file)
"Create a process for NAME using COMMAND to format FILE with CJK/LaTeX."
(write-cjk-file)
(TeX-run-LaTeX name command file))
;; replace the error source file from *.cjk to *.tex, then C-c ` can
;; be used as usual.
(add-hook 'TeX-translate-location-hook
'(lambda ()
(if (string-match "\\(.*\\)\.cjk$" file)
(setq file
(concat
(substring file
(match-beginning 1)
(match-end 1))
".tex")))))
(defvar TeX-command-list
(list (list "TeX" "tex '\\nonstopmode\\input %t'" 'TeX-run-TeX nil t)
(list "TeX Interactive" "tex %t" 'TeX-run-interactive nil t)
(list "LaTeX" "%l '\\nonstopmode\\input{%t}'"
'TeX-run-LaTeX nil t)
(list "LaTeX Interactive" "%l %t" 'TeX-run-interactive nil t)
(list "LaTeX2e" "latex2e '\\nonstopmode\\input{%t}'"
'TeX-run-LaTeX nil t)
(list "CJKLaTeX" "%l '\\nonstopmode\\input{%s.cjk}'"
'TeX-run-CJK-LaTeX nil t)
(if (or window-system (getenv "DISPLAY"))
(list "View" "%v " 'TeX-run-background t nil)
(list "View" "dvi2tty -q -w 132 %s " 'TeX-run-command t nil))
(list "Print" "%p " 'TeX-run-command t nil)
(list "Queue" "%q" 'TeX-run-background nil nil)
(list "File" "dvips %d -o %f " 'TeX-run-command t nil)
(list "BibTeX" "bibtex %s" 'TeX-run-BibTeX nil nil)
(list "Index" "makeindex %s" 'TeX-run-command nil t)
(list "Check" "lacheck %s" 'TeX-run-compile nil t)
(list "Spell" "<ignored>" 'TeX-run-ispell nil nil)
(list "Other" "" 'TeX-run-command t t)
;; Not part of standard TeX.
(list "Makeinfo" "makeinfo %t" 'TeX-run-compile nil t)
(list "AmSTeX" "amstex '\\nonstopmode\\input %t'"
'TeX-run-TeX nil t)))
------------------------------------------------------------------------------------
The current state is that *.tex means a file to be processed by
cjk-enc.el while *.cjk means file to be processed by LaTeX.
I think that the *.cjk extension should mean the files to be processed
by cjk-enc.el (called by CJKLaTeX), and *.tex should have the standard
meaning of the files to be processed by LaTeX. pdfLaTeX etc.
Werner, what do you think about it?
Best regards
Janusz
--
,
dr hab. Janusz S. Bien, prof. UW
Prof. Janusz S. Bien, Warsaw Uniwersity
http://www.orient.uw.edu.pl/~jsbien/
---------------------------------------------------------------------
Na tym koncie czytam i wysylam poczte i wiadomosci offline.
On this account I read/post mail/news offline.
More information about the Cjk
mailing list