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.

For some reason my current 'report' has started numbering figures to 3 levels... so if something is within chapter 1, but section 1.3, the figure gets numbered 1.3.1...

This isn't what I want... it's too much granularity for me. I just figures numbered in order within the chapter... so 1.1, 1.2, 1.3 as they appear, regardless of the section within the chapter in which they appear.

Could anyone help? Thanks.

share|improve this question
    
Related: tex.stackexchange.com/questions/28333/… –  lockstep Aug 29 '12 at 14:29
    
Use \numberwithout{figure}{section}\numberwithin{figure}{chapter}. This should remove the figure counter slaving to the section counter and re-insert it to slave after chapter. –  Werner Aug 29 '12 at 15:56
    
numberwithout...? does that exist? I just googled it and only numberwithin came up. It also gives me an error in latex..."undefined control sequence". Any ideas? Thanks –  Rob D Aug 29 '12 at 17:36

1 Answer 1

Assuming you're also using the amsmath package, you could issue the command

\numberwithin{figure}{chapter}

to reset the numbering system for figure-type floats. Try issuing this command toward the end of the preamble, i.e., after any packages that may affect the numbering system for figures are loaded.

Do check, though, if you're already loading some package or issuing some commands that forces figures to be numbered at the section level rather than at the chapter level. If so, you might try disabling (e.g., by commenting out) the unwanted instructions.

share|improve this answer
    
Yeah I can't see anything I'm issuing that would make it do that. I do have asmath package installed though. I tried adding your suggestion to my preamble and I got an erro saying "tex capacity exceeded"...? –  Rob D Aug 29 '12 at 14:29
    
Thanks... sadly not making any difference at all... –  Rob D Aug 29 '12 at 14:37
    
@RobD - My bad, it should have been \numberwithin{figure}{chapter} (as lockstep has already pointed out). –  Mico Aug 29 '12 at 15:46

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.