View source: R/post-process-longtables.R
post_process_longtables | R Documentation |
Post-process LaTeX longtables in TEX code
post_process_longtables(x, cont_page_just = c("l", "c", "r"), ...)
x |
Tex code, as a vector of lines read in from a TeX file by
|
cont_page_just |
The justification for the continue page lines. Must be one of "l", "c", or "r" |
... |
Absorbs arguments meant for other functions |
Injects some LaTeX code which adds 'Continued on next page ...' and
'... Continued from previous page' to the longtables that split pages.
Removes the caption for the subsequent pages, but leaves the header row.
Assumes that the table TeX was created using the following syntax:
kable(longtable = TRUE) |> kable_styling(latex_options = c("repeat_header"))
If repeat_header
is not used to create the TeX code an error will be
thrown which will explain that \\endfirsthead
cannot be found.
The modified Tex code, as a vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.