-
Notifications
You must be signed in to change notification settings - Fork 220
Closed
Labels
Milestone
Description
The setting tab_options(table.width = pct(100))
doesn't seem to be respected when rendering to LaTeX, see reprex below. Is this something you'd consider supporting?
It seems that the longtable
LaTeX environment is used to render all tables. The fairly new xltabular
package could be an option to render long tables with support for the X
column modifier, which could perhaps be applied to all columns that are left-aligned.
Related: setting column width (#111).
library(gt)
default_latex <-
data.frame(a = 1, b = 2) %>%
gt() %>%
as_latex()
full_width_latex <-
data.frame(a = 1, b = 2) %>%
gt() %>%
tab_options(table.width = pct(100)) %>%
as_latex()
identical(default_latex, full_width_latex)
#> [1] TRUE
Created on 2019-01-01 by the reprex package (v0.2.1.9000)
robyngit, davebraze, jankowtf, joshpk, djbirke and 5 more
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done