I want to customize the YAML header for my html output and I found the "YAML Fieldguide". Here are some subheaders listed like:
- Basic YAML
- LaTex/PDF Options
- ...
And I don't know how to use them - for example email and keywords. My problem is, that I haven't found a proper explanation how to use the YAML Fieldguide.
I think I found some appropriate questions on this site like Authors and affiliations in the YAML of RMarkdown but for me it doesn't work...
While my research I also found out, that you have to do a "special" YAML header depending of your desired output (html, pdf, word...). But here I also don't find something like a tutorial or so.
So my question is:
- Is there anywhere a proper explanation how to use the YAML Fieldguide
- How to perform your accommodations to your desired output - html, pdf...
- or at least some hints to this issue
Many thanks in advance!
Here my little code chunk where you see, that email and keywords isn't rendered to html.
# console input
# rmarkdown::render(input="./yourFile.Rmd",output_file="./yourRenderedFile.html")
---
# The YAML header
title: Customize your YAML header
subtitle: like you want
author: tueftla
email: tueftla@tueftla.com
date: "`r format(Sys.time(), '%d.%m.%Y')`"
output: html_document
abstract: "Content of the abstract"
keywords: word_1, word_2
---