我正在使用 RStudio Presentation,我想更改主要元素(例如:标题、元素符号和子元素符号)的字体大小。我能够将样式表添加到我的 rmd 文件,但我不知道要在 css 文件中更改什么。我曾尝试更改 css 文件中不同位置的字体大小,但没有任何效果。
## Slide with Bullets
- Bullet 1
+ Sub bullet
- Bullet 2
- Bullet 3
最佳答案
rstudio 演示文稿的默认样式表是 here
你当然可以有一个样式表,但你也可以像下面这样即时更改设置。
Untitled
========================================================
Slide title
========================================================
<style>
/* slide titles */
.reveal h3 {
font-size: 100px;
color: blue;
}
/* heading for slides with two hashes ## */
.reveal .slides section .slideContent h2 {
font-size: 40px;
font-weight: bold;
color: green;
}
/* ordered and unordered list styles */
.reveal ul,
.reveal ol {
font-size: 50px;
color: red;
list-style-type: square;
}
</style>
## Slide with Bullets
- Bullet 1
+ Sub bullet
- Bullet 2
- Bullet 3
给我这个
#
、##
、###
等分别对应h1
、h2
、h3
等。显然 h3
与幻灯片标题一起出现。如果要更改 rstudio 样式表,将 .reveal
放在每个元素的前面也很重要。
关于css - 使用样式表更改 RStudio 演示文稿的字体大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28207912/