13.3 Using a template

Templates have an extended YAML section compared to the basic R Markdown template, which allows you to specify additional details relevant to the custom template. Below is an example of the YAML section for theSpringer template:

title: Title heresubtitle: Do you have a subtitle? If so, write it heretitlerunning: Short form of title (if too long for head)authorrunning:  Short form of author list if too long for running headthanks:|  Grants or other notes about the article that should go  on the front page should be placed here. General  acknowledgments should be placed at the end of the article.authors:-name: Author 1address: Department of YYY, University of XXXemail: abc@def-name: Author 2address: Department of ZZZ, University of WWWemail: djf@wefkeywords:- key- dictionary- wordMSC:- MSC code 1- MSC code 2abstract:|  The text of your abstract.  150 -- 250 words.bibliography: bibliography.biboutput: rticles::springer_article

As the Rmd documents are built using customized templates, you may not be able to use the YAML metadata to control the layout of the document as described in Section3.3, unless the template supports such metadata. For example, addingtoc: true may not add a table of contents. Commands that control the building process may still be used though, includingkeep_tex: true, or those that configureknitr chunk options (e.g.,fig_width).