Search code examples
latexr-markdownpandocbookdownpdflatex

Adding supervisor and other info into bookdown pdf_book


I want to include my supervisor's name, course name etc. for my paper written in bookdown. I specifically want this information to be in different lines. So far I have tried this in the yaml:

--- 
title: "Term Paper Title"
author:
        - "Bird"
        - "Supervisor: Hummingbird"
        - "Course: Ornithology"
        - "University: XXX State University"
date: "Summer Semester: 2021"
site: bookdown::bookdown_site
output:
  bookdown::pdf_book:
    includes:
      in_header: preamble.tex
documentclass: book
classoption: openany
bibliography: [book.bib, packages.bib]
biblio-style: apalike
link-citations: yes
mainfont: Times New Roman
fontsize: 12pt
geometry: "left=3cm, right=2cm, top=2.5cm, bottom=2.5cm"
linestretch: 1.5
toc-depth: 1
secnumdepth: 1
---

Result looks like this:

enter image description here

Here my name and supervisor names etc. all are in one line. How can I force them to be in different lines? For example I want something like this (taken from this post)


Solution

  • Using a "line block" should do the trick:

    author: |
      | Bird
      | Supervisor: Hummingbird
      | Course: Ornithology
      | University: XXX State University