Sign up ×
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.

How can you change table numbers in LyX. I want to get tables numbered within section (Table 1.1, 1.2 etc.). For some reason \numberwithin{table}{section} is not working.

share|improve this question
Have a look at… – lockstep Jul 7 '12 at 14:29

1 Answer 1

\numberwithin{<slave>}{<master>} is a macro defined by amsmath. So, in order to use it, you need to add the following to your LaTeX Preamble:


Similar functionality is provided by chngcntr, via macros like \counterwithin and \counterwithout. The latter package provides the means to removing any counter bindings, which amsmath does not offer.

share|improve this answer

Your Answer


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.