微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何在主题:“框”下的rmarkdown投影仪幻灯片上添加页码?

如何解决如何在主题:“框”下的rmarkdown投影仪幻灯片上添加页码?

我使用rmarkdown投影仪,尝试在每张幻灯片底部添加幻灯片编号,但一直失败。无论如何,我可以在称为“框”的投影仪主题下在每页上添加幻灯片编号吗?

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。