[英]Beamer presentation using R Markdown
I'm using R Markdown to make a beamer presentation and I have an issue with slide level.我正在使用 R Markdown 进行投影仪演示,但幻灯片级别有问题。
I choose the Frankfurt theme.我选择法兰克福主题。 This theme allows to have a presentation's plan (bullets in header).这个主题允许有一个演示文稿的计划(标题中的项目符号)。
My issue :我的问题:
When I put "slide_level: 2", I have the content but not the presentation's plan.当我输入“slide_level: 2”时,我有内容但没有演示文稿的计划。
When I put "slide_level: 3", I have the presentation's plan but content disappears.当我放置“slide_level: 3”时,我有演示文稿的计划但内容消失了。
What am I doing wrong ?我究竟做错了什么 ?
Hereunder is the R Markdown下面是 R Markdown
---
title: "Herding"
author:
- Loana
institute:
- Supervised by
- University
date: Academic year 2017-2018
output:
beamer_presentation:
incremental: false
theme: "Frankfurt"
colortheme: "beaver"
fonttheme: "structuresmallcapsserif"
toc: true
slide_level: 2
fig_width: 5
fig_height: 4
fig_caption: true
highlight: tango
link-citations: yes
urlcolor: red
linkcolor: red
citecolor: blue
---
----
# Title1
## Subtitle1
Text
----
# Title2
## Subtitle2
- Text
- Text
----
To get your desired result, set slide_level: 3
and, correspondingly, use ###
to denote frame titles, eg ### Slide 1-1
.要获得所需的结果,请设置slide_level: 3
并相应地使用###
表示帧标题,例如### Slide 1-1
。 It appears that #
represents sections and ##
subsections.看来#
代表节和##
子节。 If you do not wish to have subsections, create dummy subsections (see examples below) and set \\AtBeginSubsection{}
in your YAML header to suppress subsection title frames.如果您不希望有小节,请创建虚拟小节(参见下面的示例)并在 YAML 标头中设置\\AtBeginSubsection{}
以抑制小节标题框架。
---
title: "Herding"
author:
- Loana
institute:
- Supervised by
- University
date: Academic year 2017-2018
output:
beamer_presentation:
incremental: false
theme: "Frankfurt"
colortheme: "beaver"
toc: true
slide_level: 3
keep_tex: true
header-includes:
- \AtBeginSubsection{}
---
# Section 1
##
### Slide 1-1
- Text
### Slide 1-2
- Text
# Section 2
##
### Slide 2-1
- Text
- Text
### Slide 2-2
- Test
would give you会给你
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.