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

Wor*_*ice 3 latex r mathjax 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代码框大小和字体大小中建议的方法不会影响数学公式的大小.

Wor*_*ice 13

RPres文档和Rmarkdown文档中的数学公式是嵌入在Rmarkdown文档中的LateX代码块.

因此,数学公式的字体大小或更一般地,乳胶文本的,可以通过用一个参数范围从改性\tiny\HUGE:

$$\Huge textblog.org$$
Run Code Online (Sandbox Code Playgroud)

将根据以下内容影响字体的大小:

IMG1