Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
8  
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 4 '12 at 14:48
5  
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 4 '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 4 '12 at 14:51
    
thanks mike and bloodworks. Your solution solved my problem –  KiloWatt Jan 4 '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 4 '12 at 15:29
show 2 more comments

1 Answer

up vote 18 down vote accepted

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.