Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

R-Markdown(PDF): Add space between Author, Date, and Abstract in YAML header

My YAML header looks like this, and I would like to change only the space between the author/date, and abstract.

How can I achieve this? I have tried using /vspace{1cm} after the date (failed), and also at the start of the abstract text, but that only spaces the text, and not "Abstract" itself.
Any ideas?

---
title: 
subtitle: 
author: "Me "
date: "`r format(Sys.time(), '%B %d, %Y')`" 
abstract: "The document shows the answer to all questions & the output (as it relates to each)"
output:
  pdf_document: 
    keep_tex: false
    toc: false
---

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

---
title: "test"
subtitle: 
author: "Me "
date: "`r format(Sys.time(), '%B %d, %Y')`" 
abstract: "The document shows the answer to all questions & the output (as it relates to each)"
output:
  pdf_document: 
    keep_tex: false
    toc: false
header-includes:
  - \AddToHook{env/abstract/before}{\vspace*{4cm}}
---

\maketitle


test
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading