每张幻灯片标题中的目录摘要

问题描述 投票:2回答:1

R-Markdown中的list of possible R-Markdown templatesbeamer_presentation

并且其中大多数在每张幻灯片的顶部(或左侧/右侧)都包含一种“导航栏”,如下所示:

Example of slider header

虽然我确实了解如何在R-Markdown中创建目录(通过在标题中提供toc: true,但我不知道如何将此导航添加到每张幻灯片。

我也了解如何为R-Markdown for HTML格式创建浮动目录(通过toc_float: true进行描述,如here所述,但仍无法弄清楚如何使其成为beamer格式)。任何提示将不胜感激。

r latex r-markdown beamer
1个回答
2
投票

如果使用合适的投影仪主题,带有导航栏的标题会自动插入每帧中。您在问题中显示的那个叫Antibes

---
title: test title
output:
  beamer_presentation:
    theme: "Antibes"
header-includes:
  - \usepackage{tikzlings}
---

# Section name

## Subsection name

### Slide 1

\begin{tikzpicture}
\pig[scale=2]
\end{tikzpicture}   

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.