gpt4 book ai didi

Rmarkdown投影仪: How to left justify the title page

转载 作者:行者123 更新时间:2023-12-05 05:17:51 24 4
gpt4 key购买 nike

如何将我的 Rmarkdown beamer 演示文稿的标题页对齐到左侧而不是默认中心?

示例,默认为中心:

---
title: "Untitled"
author: "S SS"
date: "2/4/2018"
output: beamer_presentation
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
```

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

enter image description here

最佳答案

您可以使用以下命令切换到左对齐标题页

\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

enter image description here


编辑:

使用最新版本的markdown,你也可以直接做

---
title: "Untitled"
author: "S SS"
date: "2/4/2018"
output:
beamer_presentation
header-includes:
- \setbeamertemplate{title page}[default][left]
---

test

关于Rmarkdown投影仪: How to left justify the title page,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48614727/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com