【问题标题】:Adding supervisor and other info into bookdown pdf_book将主管和其他信息添加到 bookdown pdf_book
【发布时间】:2021-07-27 13:01:53
【问题描述】:

我想在 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 之类的东西(取自this post

【问题讨论】:

标签: r latex r-markdown bookdown pdflatex


【解决方案1】:

使用“line block”应该可以解决问题:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-04-21
    • 2011-01-22
    • 2018-04-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-02-04
    相关资源
    最近更新 更多