Timeline for AUCTeX/LaTeX - ERROR: Undefined control sequence. documentclass
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 31, 2017 at 12:10 | comment | added | Daniel Hitzel |
thanks this C-c C-l really did the thing. pdflatex was not correctly included into my path in emacs .
|
|
Jan 31, 2017 at 7:55 | comment | added | wvxvw |
The message would imply that you tried to process the contents of the file with pure TeX, not LaTeX (documentclass is a LaTeX macro). I don't think you are using pdflatex from Emacs when you compile your document. Probably it just calls to something that knows how to process just TeX.
|
|
Jan 31, 2017 at 6:37 | comment | added | Arash Esbati |
Which version of AUCTeX do you have (C-h v AUCTeX-version RET ) and how did you install it? I suggest you install the latest version via ELPA, drop the lines (require 'tex) and (setq latex-run-command "pdflatex") in your .emacs and try it again. You can also check the output buffer with C-c C-l to see how TeX was invoked.
|
|
Jan 30, 2017 at 19:32 | history | asked | Daniel Hitzel | CC BY-SA 3.0 |