General! Undefined control sequence \documentclass

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ahmed
Posts: 7
Joined: Fri Nov 21, 2008 11:06 pm

! Undefined control sequence \documentclass

Post by ahmed »

Hi everybody , can anybody help me??
when iam trying to compile the following tex file that iam sure that it is's syntax is correct, i found this errors

Iam using fedora 7

Code: Select all

\documentclass[a4paper,12pt]{book}
\usepackage[usenames]{color}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathpazo,graphics,graphicx,amsopn,url, epsf}
\usepackage[T1]{fontenc}
\usepackage[section]{placeins}
\usepackage{hyperref }
\usepackage{makeidx}
\usepackage{fancyhdr}
\usepackage{rotating}
\usepackage[latin1]{inputenc}
\usepackage{multirow}
\title{Climate Change}
%%%%%% Begin document%%%%%%%
\begin{document}
\maketitle
crash course on climate change
\chapter{Introduction to  climate}
\section{whats is the climat change parameters ?}
\subsection{Temperature  parameter}
\section{whats is the climat change components ?}

        we care in our study for climat that we know most imprtant climat paramerter
        the more imporatnt Parameter is
\begin{itemize}
\item Temperature
\item Preciptation
\end{itemize}
\begin{equation}
        I=\sigma t^4
\end {equation}
\chapter{EL Nino La Nina}
\section{why El Nino and La Nina ?}
It is one of the famous
\chapter{climate of nile flood}
%%%%%%End  Document
\end{document}
the errors

Code: Select all

This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./ahmed.tex
! Undefined control sequence.
l.1 \documentclass
                  [a4paper,12pt]{book}
?
! Undefined control sequence.
l.2 \usepackage
               [usenames]{color}
?
! Undefined control sequence.
l.3 \usepackage
               {amsmath}
?
! Undefined control sequence.
l.4 \usepackage
               {amssymb}
?
! Undefined control sequence.
l.5 \usepackage
               {mathpazo,graphics,graphicx,amsopn,url, epsf}
?
! Undefined control sequence.
l.6 \usepackage
               [T1]{fontenc}
?
! Undefined control sequence.
l.7 \usepackage
               [section]{placeins}
?
! Undefined control sequence.
l.8 \usepackage
               {hyperref }
?
! Undefined control sequence.
l.9 \usepackage
               {makeidx}
?
! Undefined control sequence.
l.10 \usepackage
                {fancyhdr}
?                           
Last edited by ahmed on Fri Nov 21, 2008 11:55 pm, edited 2 times in total.

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

! Undefined control sequence \documentclass

Post by localghost »

You probably run (pdf)tex on your source instead of (pdf)latex. For me your code compiles smoothly.


Best regards and welcome to the board
Thorsten¹
ahmed
Posts: 7
Joined: Fri Nov 21, 2008 11:06 pm

! Undefined control sequence \documentclass

Post by ahmed »

I used pdflatex instead of pdftex and it working so well
thanks Thorsten :D
Post Reply