簡體   English   中英

使用樣式表更改字體大小以進行RStudio演示

[英]Change font sizes with style sheets for RStudio presentation

我正在使用RStudio Presentation,我想更改主要元素的字體大小(例如:header,bullet和sub bullet)。 我能夠將樣式表添加到我的rmd文件中,但我不知道在css文件中要更改什么。 我已經嘗試在css文件中的各個地方更改字體大小但沒有任何效果。

## Slide with Bullets

- Bullet 1
    + Sub bullet
- Bullet 2
- Bullet 3

rstudio演示文稿的默認樣式表在這里

你當然可以有一個樣式表,但你也可以像下面一樣動態更改設置。

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

給我這個

在此輸入圖像描述

######等對應於h1h2h3等。顯然h3與幻燈片標題一致。 如果要更改rstudio樣式表,將.reveal放在每個項目的前面也很重要。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM