如何垂直居中我的 rmarkdown pdf 文档的标题?

How to I vertically center the title of my rmarkdown pdf document?

我有以下序言:

---
title: "Luke Klein Dissertation MARKDOWN ROUGH DRAFT"
author: "Luke KLEIN"
date: "`r Sys.Date()`"
output: 
  pdf_document:
    toc: true
---

如何让我的标题在封面居中?

你可能已经完成了你的论文 :-) 但在我通过 google.

来到这里时留下解决方案以备将来参考
---
title: |
  | \vspace{5cm} \LARGE{Luke Klein Dissertation MARKDOWN ROUGH DRAFT}
author: "Luke KLEIN"
date: "`r Sys.Date()`"
output: 
pdf_document:
  toc: true
---

结合使用 vspace 和 hspace,您可以将标题放在任何您想要的地方。

其他字体组合(大小和类型)可以在这里看到:

https://www.sharelatex.com/learn/Font_sizes,_families,_and_styles?nocdn=true

聚会迟到了,这对我有用:

---
title: "Luke Klein Dissertation MARKDOWN ROUGH DRAFT"
author: "Luke KLEIN"
date: "`r Sys.Date()`"
output: 
pdf_document:
  toc: true
header-includes:
- \pretitle{\begin{center} \vspace{5cm}}
---