gpt4 book ai didi

r - 为 knitr beamer 幻灯片丢掉部分和小节标题的帧

转载 作者:行者123 更新时间:2023-12-04 09:30:59 25 4
gpt4 key购买 nike

使用 knitr 制作投影仪幻灯片时使用法兰克福主题,PDF 输出包括带有节和子节名称的幻灯片。

---
title: Movies
author: Chewy
output:
beamer_presentation:
slide_level: 3
theme: "Frankfurt"
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
```

#Introduction

##Background

###History

A long time ago ...

###History

... in a galaxy far far away

#The End

##This the end

### My only friend, the end

给出这个输出...

幻灯片 1-4:

enter image description here

幻灯片 5-8:

enter image description here

如何去掉带有节和小节标题的幻灯片(2、3、6 和 7),同时保持幻灯片顶部显示的文档结构?

最佳答案

这些帧由命令 \AtBeginSubsection{} 生成和 \AtBeginSection{} ,你可以在你的 YAML 前端重新定义它而不做任何事情:

---
header-includes:
- \AtBeginSubsection{}
- \AtBeginSection{}
---

关于r - 为 knitr beamer 幻灯片丢掉部分和小节标题的帧,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38180441/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com