Using RMarkdown section number

I am using htmlTable with the table number in the caption via

table_counter_str = "Table %s: ")

in the setup chunk. However, the table number (table_counter) resets with each section. To get around this, I would like to use a compound table number that looks like <sect_counter>.<table_counter>.

How can I access section and subsection numbers?

Thanks in advance!

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.