Discussion:
Undefined control sequence. \documentclass
(too old to reply)
h***@googlemail.com
2006-09-11 20:23:45 UTC
Permalink
What the hell am I doing wrong??

This is may Beispiel1.tex file:

\documentclass[a4paper,10pt]{article}
\usepackage[latin1]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[dvips]{graphicx}
\begin{document}
Hi.
\end{document}

I use Kile in Suse 10.
After selecting Build->Compile->LaTeX, I get the following output
messages:

[LaTeX] Beispiel1.tex => Beispiel1.dvi (latex)
[LaTeX] finished with exit status 127
./Beispiel1.tex:1:Undefined control sequence. \documentclass
Beispiel1.tex:0:File ended while scanning use of \\.
[LaTeX] 2 errors, 0 warnings, 0 badboxes


If I uselect Build->Compile->TeX I get these messages:

[TeX] Beispiel1.tex => Beispiel1.dvi (tex)
[TeX] finished with exit status 1

and "xdvi Beispiel1.dvi" just shows me the source code. :-(


Please help.
Maarten Bergvelt
2006-09-11 21:31:46 UTC
Permalink
Post by h***@googlemail.com
What the hell am I doing wrong??
\documentclass[a4paper,10pt]{article}
\usepackage[latin1]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[dvips]{graphicx}
\begin{document}
Hi.
\end{document}
I use Kile in Suse 10.
After selecting Build->Compile->LaTeX, I get the following output
[LaTeX] Beispiel1.tex => Beispiel1.dvi (latex)
[LaTeX] finished with exit status 127
./Beispiel1.tex:1:Undefined control sequence. \documentclass
Beispiel1.tex:0:File ended while scanning use of \\.
[LaTeX] 2 errors, 0 warnings, 0 badboxes
[TeX] Beispiel1.tex => Beispiel1.dvi (tex)
[TeX] finished with exit status 1
and "xdvi Beispiel1.dvi" just shows me the source code. :-(
Well, your file compiled fine here, but I don't use Kile, so it seems
Kile is confused. Maybe try first on the command line if you can get
it to work: open a terminal window, cd to the directory where
Beispiel1.tex is and say
latex Beispiel1.tex
If that works you should ask somebody who knows about kile.
Otherwise your TeX installation is confused, tell us the error
message.
--
Maarten Bergvelt
h***@googlemail.com
2006-09-12 07:17:45 UTC
Permalink
On command line the latex command does not work (is unknown). But I can
use the command "tex Beispiel1.tex". Unfortunately this does not help,
since I get the same message: Undefined control sequence.
\documentclass
And the produced dvi-file just shows me the source code.

Any idea?
David Klassen
2006-09-12 10:27:25 UTC
Permalink
Post by h***@googlemail.com
On command line the latex command does not work (is unknown). But I can
use the command "tex Beispiel1.tex". Unfortunately this does not help,
since I get the same message: Undefined control sequence.
\documentclass
And the produced dvi-file just shows me the source code.
Any idea?
You need to use "latex Beispiel1" instead.
Maarten
2006-09-12 11:47:07 UTC
Permalink
Post by h***@googlemail.com
On command line the latex command does not work (is unknown).
Incomplete installation. How did you install TeX & friends? what is the
output of
rpm -q -a | grep tex
I think that on SUSE 10 there should be a package named
te_latex-2.0.2-190 in that list. The number is probably different, this
one's from SUSE 9.1
Post by h***@googlemail.com
But I can
use the command "tex Beispiel1.tex". Unfortunately this does not help,
since I get the same message: Undefined control sequence.
\documentclass
Expected behaviour, make sure you have latex installed if you want to
use that.

Maarten

Loading...