将主管和其他信息添加到 bookdown pdf_book
Adding supervisor and other info into bookdown pdf_book
我想在 bookdown 中写下我的导师姓名、课程名称等。我特别希望这些信息位于不同的行中。到目前为止,我已经在 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
---
结果如下所示:
这里我的名字和主管的名字等都在一行。我怎样才能强迫他们在不同的行?例如我想要 this (taken from this post)
使用“line block”应该可以解决问题:
author: |
| Bird
| Supervisor: Hummingbird
| Course: Ornithology
| University: XXX State University
我想在 bookdown 中写下我的导师姓名、课程名称等。我特别希望这些信息位于不同的行中。到目前为止,我已经在 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
---
结果如下所示:
这里我的名字和主管的名字等都在一行。我怎样才能强迫他们在不同的行?例如我想要 this (taken from this post)
使用“line block”应该可以解决问题:
author: |
| Bird
| Supervisor: Hummingbird
| Course: Ornithology
| University: XXX State University