[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] Japanese LaTeX classes not recognized

From: jfbu
Subject: Re: [AUCTeX] Japanese LaTeX classes not recognized
Date: Sun, 15 Jan 2017 15:43:17 +0100

Hi Arash
Le 15 janv. 2017 à 15:08, Arash Esbati <address@hidden> a écrit :

> Hi Jean-François,
> jfbu <address@hidden> writes:
>> when I try
>> \documentclass{jsbook}
>> \begin{document}
>> if only I spoke Japanese!
>> \end{document}
>> something goes eerie
>> It is simply that AUCTeX does not support jsbook, jsreport classes ?
> From your screenshot, Emacs sticks in Fundamental mode.  Have you
> changed `auto-mode-alist' lately?  I suggest you do `M-x
> toggle-debug-on-error', invoke the error and look what the debugger
> says.  I can put your code in a new .tex file and have no issues.

I have no issue pasting the contents above in an existing .tex file,
say to replace all its contents. But if I then type C-cC-n all
font locking is done and I end up in Fundamental Mode.

If I kill the buffer and reopen a new one from dired
I get the 

File mode specification error: (wrong-type-argument consp nil)

error from my screenshot.

I have not fiddled with auto-mode-alist (I don't paste it here
it is long) and all I find related to it in my init file is
(add-to-list 'auto-mode-alist '("\\.text\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))

(which by the way is probably unneeded now, dates back to 2014)

here is the report from debug on error. Happens when typing Return
on a selected temp.tex file with the above contents in a dired buffer

Debugger entered--Lisp error: (wrong-type-argument consp nil)
byte-code("\306\307!\210\310\307\311\312#\210\313\314  #\315\316      
 [japanese-TeX-command-list TeX-command-list TeX-expand-list 
TeX-view-predicate-list system-type TeX-view-program-list-builtin 
make-variable-buffer-local japanese-TeX-mode put permanent-local t append (("-" 
"" ignore nil t)) assoc "BibTeX" "%(bibtex) %s" "Index" "%(makeindex) %s" 
(("%(kanjiopt)" (lambda nil (if (and (featurep (quote mule)) 
japanese-TeX-use-kanji-opt-flag) (let ((str ...)) (if str (format " -kanji=%s " 
str) "")) ""))) ("%(bibtex)" (lambda nil (cond ((eq TeX-engine (quote ptex)) 
(if (executable-find "pbibtex") "pbibtex %(kanjiopt)" "jbibtex")) ((eq 
TeX-engine (quote jtex)) "jbibtex") ((eq TeX-engine (quote uptex)) "upbibtex") 
(t "bibtex")))) ("%(makeindex)" (lambda nil (if (memq TeX-engine (quote (ptex 
uptex))) "mendex %(mendexkopt)" "makeindex"))) ("%(mendexkopt)" (lambda nil (if 
(and (featurep (quote mule)) japanese-TeX-use-kanji-opt-flag) (let ((str ...)) 
(if str (format " -%c " ...) "")) ""))) ("%(xdvi)" (lambda nil (if (and 
japanese-TeX-mode (executable-find "pxdvi")) "pxdvi" "%(o?)xdvi")))) 
saved-value ((paper-a4 (TeX-match-style 
"\\`\\(a4j\\|a4paper\\|a4dutch\\|a4wide\\|sem-a4\\)\\'")) (paper-a5 
(TeX-match-style "\\`\\(a5j\\|a5paper\\|a5comb\\)\\'")) (paper-b5 (and 
(TeX-match-style "\\`b5paper\\'") (not (memq TeX-engine (quote (ptex 
uptex)))))) (paper-b5jis (or (TeX-match-style "\\`b5j\\'") (and 
(TeX-match-style "\\`b5paper\\'") (memq TeX-engine (quote (ptex uptex)))))) 
(paper-b4jis (TeX-match-style "\\`\\(b4j\\|b4paper\\)\\'"))) 
TeX-view-program-list windows-nt (("TeXworks" "TeXworks %o" "texworks") 
("MuPDF" "mupdf %o" "mupdf")) darwin (("TeXShop" "open -a %o" 
"open") ("TeXworks" "open -a %o" "open") ("PictPrinter" "open -a %d" "open") ("Mxdvi" "open -a %d" "open")) "xdvi" 
"%(xdvi) -unique" (("TeXworks" "texworks %o" "texworks") ("MuPDF" "mupdf %o" 
"mupdf")) TeX-view-program-selection ((output-dvi "dviout") (output-pdf 
"TeXworks")) ((output-pdf "")) nil mapc #[(dir) "\301\302\303#\207" 
[dir add-to-list TeX-macro-global t] 4] TeX-tree-expand ("$SYSTEXMF" 
"$TEXMFLOCAL" "$TEXMFMAIN" "$TEXMFDIST") "platex" ("/ptex/" "/pbibtex/bst/") 
("/usr/share/texmf/ptex/" "/usr/share/texmf/pbibtex/bst/") #[(dir) 
"\301\302\303#\207" [dir add-to-list TeX-macro-global t] 4] ("$SYSTEXMF" 
"$TEXMFLOCAL" "$TEXMFMAIN" "$TEXMFDIST") "jlatex" ("/jtex/" "/jbibtex/bst/") 
("/usr/share/texmf/jtex/" "/usr/share/texmf/jbibtex/bst/") 
(("\\`u[jt]\\(article\\|report\\|book\\)\\'\\|\\`uplatex\\'" "%(PDF)uplatex 
%S%(PDFout)") ("\\`[jt]s?\\(article\\|report\\|book\\)\\'" "%(PDF)platex 
%(kanjiopt)%S%(PDFout)") ("\\`j-\\(article\\|report\\|book\\)\\'" "%(PDF)jlatex 
%S%(PDFout)")) custom-declare-variable japanese-TeX-error-messages "*If 
non-nil, explain TeX error messages in Japanese." :group ...] 8)
apply(TeX-tex-mode nil)
set-auto-mode-0(tex-mode nil)
after-find-file(nil t)
find-file-noselect-1(#<buffer FOO/temp.tex> "~/FOO/temp.tex" nil nil 
"~/FOO/temp.tex" (31197844 16777217))
find-file-noselect("/Users/FOO/temp.tex" nil nil nil)
call-interactively(dired-find-file nil nil)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]