Closed mdaviesgit closed 9 months ago
yes, that's a good suggestion. It will probably an option of flextable::set_table_properties()
That was a nice suggestion, thanks.
Footer rows along pages in PDF are now deactivated by default. (It can be activated with command set_table_properties(opts_pdf = list(footer_repeat = TRUE))
.)
---
output:
bookdown::pdf_document2:
latex_engine: xelatex
---
```{r table}
library(flextable)
library(dplyr)
flextable(iris)%>%
set_table_properties(opts_pdf = list(footer_repeat = TRUE)) %>%
# set_table_properties(opts_pdf = list(footer_repeat = FALSE)) %>% # default option
add_footer_lines("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.")
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.
Flextable outputs in .docx documents, that exceed the space of a single page, automatically spread over multiple pages, and footnotes are only placed at the end of the table. However, for pdf outputs, the table will split over multiple pages, but the footnote appears on every page. For example: