officedown::rdocx_document showing no number in figure and table captions

634 Views Asked by At

The number is not appearing in the table and figure captions. For example, even if I compile a default document in r studio i.e. New File -> R Markdown... -> From Template -> Advanced Word Document, and then knit the document, I see missing table and figure numbers.

enter image description here

enter image description here

Session info:

enter image description here

1 C:/Users/xxxx/Documents/R/win-library/4.1 2 C:/Program Files/R/R-4.1.3/library

I have also tried with block_caption but the problem remains unchanged.

Does anyone know what is going wrong here?

Thank a lot in advance.

0

There are 0 best solutions below