auctex
[Top][All Lists]
Advanced

[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      
\"A\317\240\210\315\320 
\"A\321\240\210\313\n\322\"\303\323N\204-\324\325\323N\204S\f\326=\203=\327\202Q\f\330=\203G\331\202Q\315\332
\"address@hidden"\341\342\343\344\345\346#\206\347\"\210\341\350\343\351\352\353#\206\214\354\"address@hidden"address@hidden&\210\356\365\340\366\361\362\363\367&\210\356\370\340\371\361\362\363\372&\210\356\373\374\375\361\362\363\376&\210\306\373!\210\356\377\201C\201D\361\362\363\376&\210\306\377!\210\356\201E\201F\201G\361\362\363\376&\210\356\201A\201H\201I\361\362\363\201J&\210\313AB\"B\340\207"
 [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 TeXShop.app %o" 
"open") ("TeXworks" "open -a TeXworks.app %o" "open") ("PictPrinter" "open -a 
PictPrinter.app %d" "open") ("Mxdvi" "open -a Mxdvi.app %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 "Preview.app")) 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)
japanese-latex-mode()
TeX-tex-mode()
apply(TeX-tex-mode nil)
tex-mode()
set-auto-mode-0(tex-mode nil)
set-auto-mode()
normal-mode(t)
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)
find-file("/Users/FOO/temp.tex")
dired-find-file()
funcall-interactively(dired-find-file)
call-interactively(dired-find-file nil nil)
command-execute(dired-find-file)

Best,
Jean-François


reply via email to

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