R markup format header - pdf output

I'm sure this is already there, but I can't seem to find it. How to change font size and spacing for heading in R markdown document drawn as pdf?

Thank!

+3


source to share


1 answer


I'm not sure exactly how you want the document to look, but here are a few ways to control spacing and fontsize with tags Latex

. In the document rmd

below:

  • Leading \vspace{5cm}

    adds a space above the first line of the title. \vspace{0.5cm}

    adds a space between the two header lines.
  • \LARGE

    and \LARGE

    give different font sizes on different header lines.
  • |

    at the beginning of each header line allows a multi-line header.
  • If you need a separate cover page, \newpage

    at the beginning of the main document will start the main document text on a new page after the cover page.



---
title: | 
  | \vspace{5cm} \LARGE{My Title is really long and takes up several lines of text}
  | \vspace{0.5cm} \Large{My Title is really long and takes up several lines of text}
author: "eipi10"
date: "5/16/2017"
output: pdf_document
---

\newpage

Document text here.

      

+4


source







All Articles