Describe the bug
RMarkdown knitted documents have missed counting the pages of list of figures and list of tables. For my recent case, I was supposed to have page 4 for my Summary section on the table of content since I had the list of figures and the list of tables on pages 2 and 3. But the TOC, the first section (Summary) started at 2 (instead of 4). Also, the page number was 24/22 but not 24/24.
These two figures showed how the wrong counting looks like.
On the table of content:
On the last page of the document
These two figures showed how the correct counting looks like.
On the table of content:
On the last page of the document
Additional context
I could resolve this problem by adding {repeat_header_method = 'replace'} in the kable_styling function for one document, but it did not work on another document.
Describe the bug RMarkdown knitted documents have missed counting the pages of list of figures and list of tables. For my recent case, I was supposed to have page 4 for my Summary section on the table of content since I had the list of figures and the list of tables on pages 2 and 3. But the TOC, the first section (Summary) started at 2 (instead of 4). Also, the page number was 24/22 but not 24/24.
These two figures showed how the wrong counting looks like. On the table of content:
On the last page of the document
![image](https://user-images.githubusercontent.com/65984889/227595704-41ba3558-fe6c-487e-b117-2146277a3b0a.png)
These two figures showed how the correct counting looks like. On the table of content:
On the last page of the document
![image](https://user-images.githubusercontent.com/65984889/227596447-84c7064d-f2e5-40c2-83b8-b0a7cf4f578c.png)
Additional context I could resolve this problem by adding {repeat_header_method = 'replace'} in the kable_styling function for one document, but it did not work on another document.