LaTeX forum ⇒ General! Undefined control sequence \documentclass Topic is solved

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

! Undefined control sequence \documentclass

Postby ahmed » Fri Nov 21, 2008 11:28 pm

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

  1. \documentclass[a4paper,12pt]{book}
  2. \usepackage[usenames]{color}
  3. \usepackage{amsmath}
  4. \usepackage{amssymb}
  5. \usepackage{mathpazo,graphics,graphicx,amsopn,url, epsf}
  6. \usepackage[T1]{fontenc}
  7. \usepackage[section]{placeins}
  8. \usepackage{hyperref }
  9. \usepackage{makeidx}
  10. \usepackage{fancyhdr}
  11. \usepackage{rotating}
  12. \usepackage[latin1]{inputenc}
  13. \usepackage{multirow}
  14. \title{Climate Change}
  15. %%%%%% Begin document%%%%%%%
  16. \begin{document}
  17. \maketitle
  18. crash course on climate change
  19. \chapter{Introduction to climate}
  20. \section{whats is the climat change parameters ?}
  21. \subsection{Temperature parameter}
  22. \section{whats is the climat change components ?}
  23.  
  24. we care in our study for climat that we know most imprtant climat paramerter
  25. the more imporatnt Parameter is
  26. \begin{itemize}
  27. \item Temperature
  28. \item Preciptation
  29. \end{itemize}
  30. \begin{equation}
  31. I=\sigma t^4
  32. \end {equation}
  33. \chapter{EL Nino La Nina}
  34. \section{why El Nino and La Nina ?}
  35. It is one of the famous
  36. \chapter{climate of nile flood}
  37. %%%%%%End Document
  38. \end{document}


the errors

  1. This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
  2. entering extended mode
  3. (./ahmed.tex
  4. ! Undefined control sequence.
  5. l.1 \documentclass
  6. [a4paper,12pt]{book}
  7. ?
  8. ! Undefined control sequence.
  9. l.2 \usepackage
  10. [usenames]{color}
  11. ?
  12. ! Undefined control sequence.
  13. l.3 \usepackage
  14. {amsmath}
  15. ?
  16. ! Undefined control sequence.
  17. l.4 \usepackage
  18. {amssymb}
  19. ?
  20. ! Undefined control sequence.
  21. l.5 \usepackage
  22. {mathpazo,graphics,graphicx,amsopn,url, epsf}
  23. ?
  24. ! Undefined control sequence.
  25. l.6 \usepackage
  26. [T1]{fontenc}
  27. ?
  28. ! Undefined control sequence.
  29. l.7 \usepackage
  30. [section]{placeins}
  31. ?
  32. ! Undefined control sequence.
  33. l.8 \usepackage
  34. {hyperref }
  35. ?
  36. ! Undefined control sequence.
  37. l.9 \usepackage
  38. {makeidx}
  39. ?
  40. ! Undefined control sequence.
  41. l.10 \usepackage
  42. {fancyhdr}
  43. ?
Last edited by ahmed on Fri Nov 21, 2008 11:55 pm, edited 2 times in total.

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Fri Nov 21, 2008 11:47 pm

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

Link:
BBcode: Topic is solved[/url]" title="Click to select post's link in BBcode format" onclick="this.focus();this.select();" />
HTML: Topic is solved</a>" title="Click to select post's link in HTML format" onclick="this.focus();this.select();" />
Hide post links
Show post links

ahmed
Posts: 7
Joined: Fri Nov 21, 2008 11:06 pm

Postby ahmed » Sat Nov 22, 2008 2:32 pm

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

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “General”

Who is online

Users browsing this forum: No registered users and 5 guests