Generaltex does not recognize \documentclass{article}

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
powertoaster
Posts: 1
Joined: Sat Sep 05, 2009 1:02 am

tex does not recognize \documentclass{article}

Post by powertoaster »

I have file test.text with the following contents.

\documentclass{article}
\begin{document}
Small is beautiful.
\end{document}

When I run tex
#tex test.tex

This is TeX, Version 3.141592 (Web2C 7.5.6)
(./test.tex
! Undefined control sequence.
l.1 \documentclass
{article}
?
! Undefined control sequence.
l.2 \begin
{document}
?
[1] )
Output written on test.dvi (1 page, 252 bytes).
Transcript written on test.log.

I can't see anything wrong with my file it seems like some thing is mising for tex any ideas?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

tex does not recognize \documentclass{article}

Post by gmedina »

powertoaster wrote: This is TeX, Version 3.141592 (Web2C 7.5.6)
(./test.tex

! Undefined control sequence.
l.1 \documentclass
{article}
...
These lines suggest that you are trying to compile a LaTeX document using TeX. Try compiling using latex or pdflatex instead.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply