如何在主题下的 rmarkdown beamer 幻灯片上添加页码:"boxes"?

How to add page numbers on rmarkdown beamer slide under theme: "boxes"?

使用 rmarkdown beamer,我尝试在每张幻灯片的底部添加幻灯片编号,但总是失败。无论如何,我可以在名为“boxes”的 beamer 主题下的每一页上添加幻灯片编号吗?

---
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 

boxes 主题有一个特殊的语法来向脚注添加内容:

 \addfootbox{normal text}{\hfill\insertframenumber\quad}

(将 <normal text> 替换为您喜欢的任何其他投影仪颜色)

MWE:

---
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