Closed baarthur closed 4 months ago
You don't have to make two separate calls. This works:
library(tinytable)
library(magrittr)
head(iris) %>%
tt() %>%
style_tt(i = 0:nrow(.), fontsize = 0.6)
Ohh, okay. But why won't it adjust the header automatically?
Ohh, okay. But why won't it adjust the header automatically?
The behavior is the same for all arguments: it adjusts the contents of the table, not the headers by default. Try style_tt(color = "orange")
One last thing, how can I adjust footnote size? Should I pass it as a latex argument, like we do for the label when using multipage?
tabularray
is super powerful for this stuff. For example:
---
title: "debug_tinytable"
format:
pdf:
header-includes: |
\SetTblrStyle{foot}{font=\LARGE}
---
```{r}
library(tinytable)
library(magrittr)
tt(head(iris), notes = "Blah blah") |> style_tt(color = "orange")
you're a hero, Vincent, thanks again! I never learned latex properly since I jumped from word to RMd/Quarto skipping the overleaf phase, so I'm still learning a lot.
I don't know if I should split this into two issues, so I opted for conciseness.
First, I'd like to suggest passing
fontsize
into options, I actually thought I could do it (see the commentedoptions()
).Second, I saw in the manual that headers can be updated by
style_tt()
except those generated bygroup_tt()
in formats Word and Markdown. What I am trying to do is quite simple, to get the whole table in the same font size (I've set a ridiculously small one just for the sake of the argument).Header font won't change automatically