如何将我的Rmarkdown beamer演示文稿的标题页靠左对齐,而不是默认的居中?
例如,默认值为center:
---
title: "Untitled"
author: "S SS"
date: "2/4/2018"
output: beamer_presentation
---
```{r setup, include=FALSE}knitr::opts_chunk$set(echo =假)
## R Markdown
This is an R Markdown presentation. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.
When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document.

发布于 2018-02-05 11:48:31
这里有一个技巧,直到有人提出更好的答案:我们将省去标准的beamer标题幻灯片,只需格式化第一张幻灯片,就像它是标题幻灯片一样:
---
output: beamer_presentation
header-includes:
- \usepackage{color}
---
\color{blue}
\LARGE{\textbf{This is the title}}
\color{black}
\vspace{0.2cm}
\large{Author Name}
\large{February 4, 2018}
```{r setup, include=FALSE}knitr::opts_chunk$set(echo =假)
## R Markdown
This is an R Markdown presentation. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.
When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document.

发布于 2019-10-30 21:45:10
您可以使用以下命令简单地切换到左对齐的标题页
\setbeamertemplate{title page}[default][left]要在rmarkdown中使用它,请将该行放在一个名为preamble.tex的文件中,并使用
---
title: "Untitled"
author: "S SS"
date: "2/4/2018"
output:
beamer_presentation:
includes:
in_header: preamble.tex
---
test

https://stackoverflow.com/questions/48614727
复制相似问题