# Goal

Render to html and pdf by declaring both formats in YAML header.

# Problem

Using the GUI Render button only yields output in the format that is mentioned first.

# Reproducible Example

On RStudio Cloud: https://rstudio.cloud/project/3967937

```
---
title: "Render to several document formats"
format:
  html:
    toc: true
  pdf:
    toc: true
editor: visual
---

# Goal

Render to html and pdf by declaring both formats in YAML header.

# Problem

Using the GUI Render button only yields output in the format that is mentioned first.
```
2022-04-27T08:25:45Z
larnsce
closed
Render to several formats by declaring them in YAML header
https://github.com/quarto-dev/quarto-cli/issues/743