Skip to content

Change of font size of table with Quarto to Latex / PDF output not working #1472

Open

Description

@BAndrews22

I am creating a document with Quarto and want to change the font size of my tables made with the gt() package.
While this works fine for HTML output, it has no effect for PDF output.

reprex:

---
format: pdf
---
```{r}
library(gt)
gt(mtcars) |> tab_options(table.font.size = 7, quarto.disable_processing = FALSE, quarto.use_bootstrap = FALSE)
```
```{r}
gt(mtcars) |> tab_options(table.font.size = 15, quarto.disable_processing = FALSE, quarto.use_bootstrap = FALSE)
```

Session info:
R version 4.3.1 (2023-06-16 ucrt)Platform: x86_64-w64-mingw32/x64 (64-bit)Running under: Windows 11 x64 (build 22621)2 Matrix products: defaultlocale:[1] LC_COLLATE=English_Ireland.utf8 LC_CTYPE=English_Ireland.utf8[3] LC_MONETARY=English_Ireland.utf8 LC_NUMERIC=C[5] LC_TIME=English_Ireland.utf8time zone: Europe/Berlintzcode source: internalattached base packages:[1] stats graphics grDevices utils datasets methods baseother attached packages:[1] gt_0.10.0loaded via a namespace (and not attached):[1] digest_0.6.33 utf8_1.2.3R6_2.5.1fastmap_1.1.1[5] tidyselect_1.2.0 xfun_0.40magrittr_2.0.3 glue_1.6.2[9] tibble_3.2.1knitr_1.44pkgconfig_2.0.3 htmltools_0.5.6.1[13] generics_0.1.3 rmarkdown_2.25 dplyr_1.1.3lifecycle_1.0.3[17] xml2_1.3.5cli_3.6.1fansi_1.0.5vctrs_0.6.4[21] withr_2.5.1compiler_4.3.1 rstudioapi_0.15.0 tools_4.3.1[25] pillar_1.9.0evaluate_0.22 yaml_2.3.7rlang_1.1.1[29] jsonlite_1.8.7

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions