## Checklist

When filing a _bug report_, please check the boxes below to confirm that you have provided us with the information we need. Have you:

- [x] [formatted your issue](https://yihui.org/issue/#please-format-your-issue-correctly) so it is easier for us to read?

- [x] included a minimal, self-contained, and reproducible example?

- [x] documented the quarto version you're running, by providing the output produced by `quarto check` in a terminal in your issue?

- [x] documented the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?

- [x] documented which operating system you're running? If on Linux, please provide the specific distribution as well.

- [x] upgraded to the latest version, including your versions of R, the RStudio IDE, and relevant R packages?

## Issue

When creating a PDF with class `srcbook`, the main authors are not taken from `_quarto.yml` but instead from the last `.qmd` rendered.

## Reprex

1. Create book project via `quarto create-project mybook --type book`
2. Add the following header to `summary.qmd`
  ```
  ---
  author:
    - test
  ---
  ```
3. `quarto render --to pdf`

Now the author in the resulting pdf is "test" rather than "Jane Doe" (which is set in `_quarto.yml`).


## Metadata

```
quarto check

[✓] Checking Quarto installation......OK
      Version: 0.9.515
      Path: /Applications/quarto/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.9.13
      Path: /opt/homebrew/opt/python@3.9/bin/python3.9
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking R installation...........OK
      Version: 4.2.0
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Users/pjs/Library/R/arm64/4.2/library
        - /opt/R/4.2.0-arm64/Resources/site-library
        - /opt/R/4.2.0-arm64/Resources/library
      rmarkdown: 2.14

[✓] Checking Knitr engine render......OK
```
dragonstyle
2022-06-06T09:24:07Z
pat-s
verify-fixed
1.0
closed
PDF book: main authors are not inferred from `_quarto.yml` but from the last `.qmd` file
https://github.com/quarto-dev/quarto-cli/issues/1073