I am writing a chapter for a book. The chapter number is 5.4
. The chapter has multiple sections. I would like all the figures, tables and equations in my chapter to be labelled as 5.4.X
. For example, the first equation should be labelled as 5.4.1
, the first table should be labelled as Table 5.4.1
, the first figure should be labelled as Figure 5.4.1
, and so on. How should I do this? I am writing this chapter independently and I do not have access to any files, etc. that will be used for the final typesetting. I am using documentclass article
for writing the chapter.
[Tex/LaTex] Custom numbering of tables, equations and figures
floatsnumbering
Best Answer
You could add the following instructions to the document's preamble:
That way, if the publisher decides to change the chapter number from
5.4
to, say,6.7
, only the\chprefix
macro needs to be adjusted.A full MWE: