post_process_longtables: Post-process LaTeX longtables in TEX code

View source: R/post-process-longtables.R

post_process_longtablesR Documentation

Post-process LaTeX longtables in TEX code

Description

Post-process LaTeX longtables in TEX code

Usage

post_process_longtables(x, cont_page_just = c("l", "c", "r"), ...)

Arguments

x

Tex code, as a vector of lines read in from a TeX file by readLines()

cont_page_just

The justification for the continue page lines. Must be one of "l", "c", or "r"

...

Absorbs arguments meant for other functions

Details

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.

Value

The modified Tex code, as a vector


pacific-hake/hake-assessment documentation built on Nov. 8, 2024, 1:16 p.m.