删除 r markdown 中的幻灯片编号
removing slide numbers in r markdown
如何使用 'madrid' 主题从 Rmarkdown beamer 演示文稿中删除幻灯片编号。
另外我如何指定或增加字体大小
---
title: "Title"
author: "Keniajin"
output:
beamer_presentation:
theme: "Madrid"
colortheme: "default"
fonttheme: "professionalfonts"
header-includes:
- \usepackage{booktabs}
- \usepackage{longtable}
- \usepackage{array}
- \usepackage{multirow}
- \usepackage{wrapfig}
- \usepackage{float}
- \usepackage{colortbl}
- \usepackage{pdflscape}
- \usepackage{tabu}
- \usepackage{xcolor}
- \usepackage{threeparttable}
- \newcommand{\columnsbegin}{\begin{columns}}
- \newcommand{\columnsend}{\end{columns}}
- \newenvironment{knitrout}{\setlength{\topsep}{0mm}}{}
fontsize: 30pt
---
## Background
This is background
## Histrory
Hii story ya
## Methods
### Method A - about this
我尝试使用 \setbeamertemplate{page number in head/foot}{}
但没有成功。
Madrid
beamer
theme uses the infolines
外面的 Madrid
beamer
theme uses the infolines
反过来又设置
\setbeamertemplate{page number in head/foot}[totalframenumber]
beamer
-Template/-Color/-Font page number in head/foot
These beamer
-color and -font are used to typeset the page number or frame
number in the footline.
The beamer
-template provides a convenient way to format the page or frame number in the footline. It is used by the infolines
outer theme and the page number
and frame number
footline themes. It can also be used with the miniframes
and split
outer themes, but for them it is set to empty as default.
The following template options are predefined:
[default]
The default option is empty.
[framenumber]
This option inserts the current frame number.
[totalframenumber]
In addition to the current frame number, this option also shows the total number of frames.
[appendixframenumber]
This options replicates the behaviour of the appendixnumberbeamer
package. In the main part before the \appendix
command the current frame number and the total number of frames in the main part is displayed. In the appendix only the frame number within the appendix and the total number of frames in the appendix are shown.
[pagenumber]
Shows the current page number.
[totalpagenumber]
In addition to the current page number also the total page number is displayed.
你需要
\setbeamertemplate{page number in head/foot}[default]
不建议更改文档的字体大小,而是更改纸张大小。这间接地调整了字体大小。如果您希望 "increase [decrease] the font size",请选择较小 [较大] 的纸张尺寸。 beamer
演示文稿的默认纸张大小使用 4:3 宽高比(文档 class 选项 aspectratio = 43
),纸张大小为 12.8cm x 9.6cm,内部设置为geometry
。如果你想让你的字体大小增加 20%(比如说),选择一个与默认大小的 80% 纵横比相匹配的纸张大小(12.8cm x 80% = 10.24cm;9.6cm x 80% = 7.68cm) :
\geometry{papersize = {10.24cm, 7.68cm}}
如何使用 'madrid' 主题从 Rmarkdown beamer 演示文稿中删除幻灯片编号。 另外我如何指定或增加字体大小
---
title: "Title"
author: "Keniajin"
output:
beamer_presentation:
theme: "Madrid"
colortheme: "default"
fonttheme: "professionalfonts"
header-includes:
- \usepackage{booktabs}
- \usepackage{longtable}
- \usepackage{array}
- \usepackage{multirow}
- \usepackage{wrapfig}
- \usepackage{float}
- \usepackage{colortbl}
- \usepackage{pdflscape}
- \usepackage{tabu}
- \usepackage{xcolor}
- \usepackage{threeparttable}
- \newcommand{\columnsbegin}{\begin{columns}}
- \newcommand{\columnsend}{\end{columns}}
- \newenvironment{knitrout}{\setlength{\topsep}{0mm}}{}
fontsize: 30pt
---
## Background
This is background
## Histrory
Hii story ya
## Methods
### Method A - about this
我尝试使用 \setbeamertemplate{page number in head/foot}{}
但没有成功。
Madrid
beamer
theme uses the infolines
外面的 Madrid
beamer
theme uses the infolines
反过来又设置
\setbeamertemplate{page number in head/foot}[totalframenumber]
beamer
-Template/-Color/-Fontpage number in head/foot
These
beamer
-color and -font are used to typeset the page number or frame number in the footline.The
beamer
-template provides a convenient way to format the page or frame number in the footline. It is used by theinfolines
outer theme and thepage number
andframe number
footline themes. It can also be used with theminiframes
andsplit
outer themes, but for them it is set to empty as default.The following template options are predefined:
[default]
The default option is empty.
[framenumber]
This option inserts the current frame number.
[totalframenumber]
In addition to the current frame number, this option also shows the total number of frames.
[appendixframenumber]
This options replicates the behaviour of theappendixnumberbeamer
package. In the main part before the\appendix
command the current frame number and the total number of frames in the main part is displayed. In the appendix only the frame number within the appendix and the total number of frames in the appendix are shown.
[pagenumber]
Shows the current page number.
[totalpagenumber]
In addition to the current page number also the total page number is displayed.
你需要
\setbeamertemplate{page number in head/foot}[default]
不建议更改文档的字体大小,而是更改纸张大小。这间接地调整了字体大小。如果您希望 "increase [decrease] the font size",请选择较小 [较大] 的纸张尺寸。 beamer
演示文稿的默认纸张大小使用 4:3 宽高比(文档 class 选项 aspectratio = 43
),纸张大小为 12.8cm x 9.6cm,内部设置为geometry
。如果你想让你的字体大小增加 20%(比如说),选择一个与默认大小的 80% 纵横比相匹配的纸张大小(12.8cm x 80% = 10.24cm;9.6cm x 80% = 7.68cm) :
\geometry{papersize = {10.24cm, 7.68cm}}