使用kable()呈现一个简单的表会产生似乎是生成的html文件中表标题的默认淡色字体颜色.有没有办法控制表(或图)标题字体的颜色,大小等?
---
title: "test"
output:
html_document:
theme: cosmo
---
```{r}
library(knitr)
tab.1 = table(mtcars$cyl, mtcars$vs)
kable(tab.1, caption="Table 1: Caption Font Color")
```
Run Code Online (Sandbox Code Playgroud) 如何更改Rpres中数学公式的字体大小?[编者注:'Rpres'是RStudio用于其"Presentation"文件的文件扩展名.它显然被用户采用作为IDE的那一部分的简写.] RPres中的代码框大小和字体大小面临类似的问题,但它没有解决数学公式的问题,这不是一个问题的一部分.代码与文本分离,但是是一大块LaTeX代码.
例如,请考虑使用默认设置生成的幻灯片的此部分:
The average height is 175cm, with a standard deviation of 10.
The z-score for a student 163cm is given by the formula:
$$z = (x - \mu)/\sigma$$
where $x$ is the student of our interest, $\mu$ is the distribution mean of
the school and $\sigma$.
Run Code Online (Sandbox Code Playgroud)
返回:
果然,RPres中代码框大小和字体大小中建议的方法不会影响数学公式的大小.