bookdown Figure numbers out of order

Hello,

I am adding figure numbers to my plots in bookdown using fig.cap=. I have this in my _bookdown.yml:

language:
  label:
    fig: "Figure "
    tab: "Table "

The figure numbers are rendering but they are out of order (sometimes). For example, they go Figure 8.1 then the next figure is Figure 0.1, or in the ninth chapter it starts with a number other than 9.

Is there something else I should be configuring so that the figure numbers match the chapter numbers and are in order?

Thanks!

1 Like

This gets fixed when a figure label is added in addition to the caption. Not sure why but wanted to add in case anybody else runs into this.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.