如何解决显示相应列表项时如何显示代码块?
在以下 RMarkdown MWE 中:
---
title: "Untitled"
output:
beamer_presentation:
slide_level: 2
---
# Paragraph
## Slide
Hello
>- This is the first item
>- This is the second item
```{r}
a <- 2+2
```
我希望代码块在第二个列表项显示在生成的 PDF 文件中时显示,而不是在显示第一项时显示代码块。
解决方法
将代码包含在 >
块中。这行得通,
---
title: "Untitled"
output:
beamer_presentation:
slide_level: 2
---
# Paragraph
## Slide
Hello
>- This is the first item
>- This is the second item
>
> ```{r}
> a <- 2+2
> ```
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。