14

I used the following LaTeX tag to make a chapter

\chapter{title here}

but it did not compile. The LaTeX compiler was talking about

Undefined control sequence

How can I get over this error?

lockstep
  • 250,273
KiloWatt
  • 1,673
  • 10
    Not all document classes support chapters (article, in particular). You need to provide a minimal working example of your document for this to be answered any further. – Mike Renfro Jan 04 '12 at 14:48
  • 6
    Hi its quite hard to say what´s going on with that little information. Make sure that you use a documentclass which provides \chapter such as report or book – bloodworks Jan 04 '12 at 14:49
  • 1
    Please provide a Mimimum Working Example. In your case minimum code that demonstrates the problem and compiles as it should when the offending \chapter{...} is commented out. – qubyte Jan 04 '12 at 14:51
  • thanks mike and bloodworks. Your solution solved my problem – KiloWatt Jan 04 '12 at 15:05
  • 1
    @MikeRenfro As you commented first, please turn your comment into an answer. Otherwise, we'll probably close the question. – lockstep Jan 04 '12 at 15:29
  • @lockstep comment converted to answer, as requested. – Mike Renfro Jan 04 '12 at 15:46
  • For a general overview of differences between the standard document classes see http://tex.stackexchange.com/questions/36988/book-vs-report-vs-article-document-class – lockstep Jan 04 '12 at 18:02

1 Answers1

31

Not all document classes support chapters -- in particular, the article standard class does not, while book and report do. You need to provide a minimal working example of your document for this to be answered any further.

Mike Renfro
  • 20,550