如何在rmarkdown beamer幻灯片主题“框”下添加页码?
使用rmarkdown beamer,我尝试在每张幻灯片的底部添加幻灯片编号,但一直失败。我是否可以在beamer主题下的每一页添加幻灯片编号,称为“框”如何在rmarkdown beamer幻灯片主题“框”下添加页码?,r,r-markdown,beamer,R,R Markdown,Beamer,使用rmarkdown beamer,我尝试在每张幻灯片的底部添加幻灯片编号,但一直失败。我是否可以在beamer主题下的每一页添加幻灯片编号,称为“框” --- title: "Big Business" author: | | Mr. Bean | Sunny College output: beamer_presentation: theme: "boxes" citation_package: natbib biblio-sty
---
title: "Big Business"
author: |
| Mr. Bean
| Sunny College
output:
beamer_presentation:
theme: "boxes"
citation_package: natbib
biblio-style: apalike
incremental: TRUE
header-includes:
- \usepackage{makecell}
- \usepackage{booktabs}
- \usepackage{adjustbox}
---
# Motivation
Big business
# Motivation 2
Small business
“长方体”主题有一种特殊的语法,可以将内容添加到下场:
\addfootbox{normal text}{\hfill\insertframenumber\quad}
替换为您喜欢的任何其他beamer颜色
MWE:
请做一个我们可以编译而不需要访问你的文件头的例子。tex@samcarter\u is\u at_topages.xyz:根据你的要求,我完全更改了上面的代码,以便你可以复制它们。我只希望每页的底部都有页码。您可以在页眉include中使用\addfootbox{normal text}{\hfill\insertframenumber\quad}为方框主题添加一条基线。我还可以使用-\addfootbox{normal text}{\hfill\insertframenumber/\inserttotalframenumber\quad}添加总帧数。
---
title: "Big Business"
author: |
| Mr. Bean
| Sunny College
output:
beamer_presentation:
theme: "boxes"
citation_package: natbib
biblio-style: apalike
incremental: TRUE
header-includes:
- \usepackage{makecell}
- \usepackage{booktabs}
- \usepackage{adjustbox}
- \addfootbox{normal text}{\hfill\insertframenumber\quad}
---
# Motivation
Big business
# Motivation 2
Small business