-
Notifications
You must be signed in to change notification settings - Fork 220
Description
Prework
- Read and agree to the code of conduct and contributing guidelines.
- If there is already a relevant issue, whether open or closed, comment on the existing thread instead of posting a new issue.
Description
The tab_style column label alignment is lost when going to latex.
Thanks for all the work on the package in general :)
Reproducible example
library(gt)
library(dplyr)
gt::exibble |>
gt() |>
tab_style(style = list(
cell_text(align = "center")),
locations = cells_column_labels(columns = everything()))
Expected result
would expect center aligned column headers in pdf output
Session info
R version 4.4.1 (2024-06-14)
Platform: aarch64-apple-darwin20
Running under: macOS 15.5
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.0
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: Europe/London
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
other attached packages:
[1] dplyr_1.1.4 gt_1.0.0
loaded via a namespace (and not attached):
[1] digest_0.6.37 R6_2.6.1 fastmap_1.2.0
[4] tidyselect_1.2.1 xfun_0.52 magrittr_2.0.3
[7] glue_1.8.0 tibble_3.2.1 knitr_1.50
[10] pkgconfig_2.0.3 htmltools_0.5.8.1 rmarkdown_2.29
[13] generics_0.1.4 lifecycle_1.0.4 xml2_1.3.8
[16] cli_3.6.5 sass_0.4.10 vctrs_0.6.5
[19] withr_3.0.2 compiler_4.4.1 rstudioapi_0.17.1
[22] tools_4.4.1 pillar_1.10.2 evaluate_1.0.3
[25] yaml_2.3.10 rlang_1.1.6