Featured Book

LaTeX Beginners Guide

Who is online

In total there are 18 users online :: 2 registered, 0 hidden and 16 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: Bing [Bot], Stefan_K and 16 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

! Undefined control sequence \documentclass Topic is solved

Add tags LaTeX specific issues not fitting into one of the other forums of this category.

! Undefined control sequence \documentclass

Postby ahmed on Fri Nov 21st, 2008

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  •  Open in writeLaTeX
\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  •  Open in writeLaTeX
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 21st, 2008, edited 2 times in total.
ahmed
 
Posts: 7
Joined: Fri Nov 21st, 2008

Re: ! Undefined control sequence  Topic is solved

Postby localghost on Fri Nov 21st, 2008

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¹
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses
User avatar
localghost
Site Moderator
 
Posts: 9219
Joined: Fri Feb 2nd, 2007
Location: Braunschweig, Germany

Re: ! Undefined control sequence

Postby ahmed on Sat Nov 22nd, 2008

I used pdflatex instead of pdftex and it working so well
thanks Thorsten :D
ahmed
 
Posts: 7
Joined: Fri Nov 21st, 2008


Return to General

Who is online

Users browsing this forum: Bing [Bot], Stefan_K and 16 guests