有没有办法在编织到 pdf 时更改 Rmarkdown 中 kable 的字体?我可以在改变大小或粗体等方面找到很多,但不能在改变实际字体方面找到很多。我只是想要一些无衬线字体。
示例降价文档:
---
title: "R Notebook"
output:
pdf_document: default
---
Change the font in the table below:
```{r message=FALSE, warning=FALSE, echo=FALSE}
library(kableExtra)
mtcars %>% head() %>% kable()
```
Run Code Online (Sandbox Code Playgroud)