[texhax] can't find input file?

Axel Freyn axel-freyn at gmx.de
Tue Feb 9 09:54:33 CET 2010


Hi Eric,
On Tue, Feb 09, 2010 at 11:07:49AM +0800, Eric Abrahamsen wrote:
>
> (eric)~ $ cat bob.tex
> \documentclass{article}
>
> \begin{document}
> This is the simplest possible document.
> \end{document}
> (eric)~ $ xetex bob.tex
> This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009)
> entering extended mode
> (./bob.tex
> ! Undefined control sequence.
> l.1 \documentclass
>                   {article}
> ? ^D
> ! Emergency stop.
> l.1 \documentclass
>                   {article}
> No pages of output.
> Transcript written on bob.log.
> (eric)~ $ pdflatex bob.tex
> This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)
> entering extended mode
> (./bob.tex
> LaTeX2e <2009/09/24>
> [[ snipped ]]
> Output written on bob.pdf (1 page, 13924 bytes).
> Transcript written on bob.log.
>
> Latex and pdflatex compile correctly from the command line, but from  
> within Emacs tell me they can't find the input file. XeTeX and TeX both 
> produce the above error from the command line, and also from within 
> Emacs.
Well, so at least from the command line everything works correctly:
"\documentclass" is NOT a valid TeX-command - it's only defined in
LaTeX! TeX HAS to claim "Undefined control sequence.".

Axel


More information about the texhax mailing list