简体   繁体   English

R:如何使用 RMarkdown ioslides 制作二级缩进的要点?

[英]R: How to make second level indented bullet points using RMarkdown ioslides?

How do I make second level bullets in RMarkdown from Rstudio?如何在 Rstudio 的 RMarkdown 中制作二级项目符号?

I tried我试过

* Level1
  + leve2

and it didn't work.它没有用。 It's not exactly clear how to do it from the tutorial.从教程中并不清楚如何做到这一点。 This seems so simple to do in normal RMarkdown.这在普通的 RMarkdown 中似乎很简单。

---
title: "Untitled"
date: "Friday, October 31, 2014"
output: pdf_document
---


```{r}
summary(cars)
```


1. Item 1
2. Item 2
    a. Item 2a
    b. Item 2b

Look at the above one, maybe the spacing is the problem看上面那个,可能是间距有问题

  • Level 1 1级
    • Level 2 (four spaces) 2楼(四格)

This works for me.这对我有用。

The OP asked about ioslides, so: OP询问了ioslides,所以:

Although it isn't detailed in the ioslides guide , the comment by @user20650 is correct: When using ioslides, simply ensure you use four spaces or one tab for the second level, eg:虽然在ioslides 指南中没有详细说明,但@user20650 的评论是正确的:使用 ioslides 时,只需确保为第二级使用四个空格或一个制表符,例如:

---
title: "Untitled"
output: ioslides_presentation
---

## Slide Header

- Level 1
    - Level 2

Note, you could also use basic html to kludge it:请注意,您还可以使用基本的HTML来杂牌吧:

---
title: "Untitled"
output: ioslides_presentation
---

## Slide Header

<ul>
<li>Level 1
    <ul>
    <li>Level 2</li>
</li>
</ul>

Subsequent levels simply require more spaces added before the bullet:后续关卡只需要在项目符号前添加更多空格:

---
title: "Untitled"
output: ioslides_presentation
---

## Slide Header

- Level 1
    - Level 2
        - Level 3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM