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'm using amsbook to write a report. I'm using \chapter{}s and \section{}s, and their numbering is fine. However, \section{}s are numbered sequentially inside each \chapter{}, but without the indication of the \chapter{}: basically, I'm getting Section 1 instead of 1.1, and similarly Subsection 1 instead of 1.1.1.

How do I go about fixing this?

share|improve this question

2 Answers 2

Write the following in the preamble:

\renewcommand{\thesection}{\thechapter.\arabic{section}}
share|improve this answer
    
Thanks, that did it (even for subsections)! –  Anto Jun 15 '11 at 15:25
    
Instead of posting a “Thank you” as a comment, you should thank by upvoting the answer (with the upward pointing arrow to the left of it) and accepting it (by clicking on the checkmark). –  egreg Jun 15 '11 at 15:31

alternate approach: in the preamble,

\numberwithin{section}{chapter}

but it doesn't carry along to subsections; for that you'd need

\numberwithin{subsection}{section}

etc.

share|improve this answer

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.