Josh Persi
Josh Persi

Reputation: 145

How to separate authors on different lines in Quarto pdf

I am preparing a Quarto pdf document and would like to specify the authors on separate lines beneath the unit to which they belong. When I knit my .qmd as an html, I get the desired output:

---
title: "Untitled"
author: 
  - "**Analytics Unit**"
  - "John Smith"
  - "Jane Doe"
format: html
---

enter image description here

However, when I switch the format to pdf, the authors names are spread across a single line

---
title: "Untitled"
author: 
  - "**Analytics Unit**"
  - "John Smith"
  - "Jane Doe"
format: pdf
---

enter image description here

Any guidance or suggestions would be appreciated!

Upvotes: 2

Views: 1075

Answers (1)

Shafee
Shafee

Reputation: 19867

you can use latex package authblk

---
title: "Untitled"
author:
  - "**Analytics Unit**"
  - "John Smith"
  - "Jane Doe"
format: pdf
include-in-header:
  text: |
   \usepackage{authblk}
---

## Quarto

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see <https://quarto.org>.


Author name at different lines


If author names seems a bit larger to you, use auth-lg package option, that is modify your YAML as,

---
title: "Untitled"
author:
  - "**Analytics Unit**"
  - "John Smith"
  - "Jane Doe"
format: pdf
include-in-header:
  text: |
   \usepackage[auth-lg]{authblk}
---

I would recommend to read the package documentation, Especially section 4 and 5.

Upvotes: 6

Related Questions