默认主题中的 R beamer 编号
R beamer numbering in default theme
我正在寻找一种解决方案,了解如何在主题设置为“默认”的 R beamer_presentation 中强制幻灯片编号。
到目前为止,我已经找到了解决方案,但在“大都市”之下。如果我只键入“default”而不是“metropolis”,则会出现错误。
---
title: "**TITLE**"
subtitle: "Subtitle"
author: "Name"
institute: ""
date: January 25, 2022
output:
beamer_presentation:
theme: "default"
keep_md: true
keep_tex: no
latex_engine: xelatex
includes:
in_header:
incremental: no
classoption: aspectratio=169
header-includes:
- \usetheme[numbering=fraction]{metropolis}
- \def\ps@navigation@titlepage{\setbeamertemplate{footline}{}\@nameuse{ps@navigation}}
---
Beamer 实际上有一个非常方便的宏来添加帧号:\setbeamertemplate{footline}[frame numbers]
到 footline
---
title: "**TITLE**"
subtitle: "Subtitle"
author: "Name"
institute: ""
date: January 25, 2022
output:
beamer_presentation:
keep_tex: true
header-includes:
- \setbeamertemplate{footline}[frame number]
---
ttt
(需要 rmarkdown v2.11.15 或更新版本)
我正在寻找一种解决方案,了解如何在主题设置为“默认”的 R beamer_presentation 中强制幻灯片编号。
到目前为止,我已经找到了解决方案,但在“大都市”之下。如果我只键入“default”而不是“metropolis”,则会出现错误。
---
title: "**TITLE**"
subtitle: "Subtitle"
author: "Name"
institute: ""
date: January 25, 2022
output:
beamer_presentation:
theme: "default"
keep_md: true
keep_tex: no
latex_engine: xelatex
includes:
in_header:
incremental: no
classoption: aspectratio=169
header-includes:
- \usetheme[numbering=fraction]{metropolis}
- \def\ps@navigation@titlepage{\setbeamertemplate{footline}{}\@nameuse{ps@navigation}}
---
Beamer 实际上有一个非常方便的宏来添加帧号:\setbeamertemplate{footline}[frame numbers]
到 footline
---
title: "**TITLE**"
subtitle: "Subtitle"
author: "Name"
institute: ""
date: January 25, 2022
output:
beamer_presentation:
keep_tex: true
header-includes:
- \setbeamertemplate{footline}[frame number]
---
ttt
(需要 rmarkdown v2.11.15 或更新版本)