KableExtra + R 曲调标题(字体、大小、颜色等...)
KableExtra + R tune caption (Font, size, color, etc...)
我在 kableExtra 中找不到调整字体大小和其他字幕参数的选项。
看看下面的内容
kable(dt, "latex", caption = "Demo table", booktabs = T) %>%
kable_styling(latex_options = c("striped", "hold_position"))
感谢任何帮助!
所有字幕都需要这个吗?然后,以下应该可以解决问题。
---
title: "Demo"
author: "H"
header-includes:
- \usepackage{caption}
- \captionsetup{font=Huge}
output: pdf_document
---
```{r}
library("kableExtra")
kable(head(mtcars), "latex", caption = "Demo table", booktabs = TRUE) %>%
kable_styling(latex_options = c("striped", "hold_position"))
```
我在 kableExtra 中找不到调整字体大小和其他字幕参数的选项。
看看下面的内容
kable(dt, "latex", caption = "Demo table", booktabs = T) %>%
kable_styling(latex_options = c("striped", "hold_position"))
感谢任何帮助!
所有字幕都需要这个吗?然后,以下应该可以解决问题。
---
title: "Demo"
author: "H"
header-includes:
- \usepackage{caption}
- \captionsetup{font=Huge}
output: pdf_document
---
```{r}
library("kableExtra")
kable(head(mtcars), "latex", caption = "Demo table", booktabs = TRUE) %>%
kable_styling(latex_options = c("striped", "hold_position"))
```