相关疑难解决方法(0)

标题字体颜色与kable

使用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)

css r knitr r-markdown

7
推荐指数
2
解决办法
2227
查看次数

在RPres中更改数学公式字体大小

如何更改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代码框大小和字体大小中建议的方法不会影响数学公式的大小.

latex r mathjax rpres

3
推荐指数
1
解决办法
3303
查看次数

标签 统计

r ×2

css ×1

knitr ×1

latex ×1

mathjax ×1

r-markdown ×1

rpres ×1