I have this in my yaml (website):

```
title:  "Something Great"
slug: 'something-great'
```

The webpage is at https://somewhere.com/something-great/

so the html is created from a index.qmd file as expected using "quarto render".

When I go add other filetypes such as pdf, revealjs, and tex, I use the following:

```
format:
  pdf:
    output-file: something-great.pdf
  latex:
    output-file: something-great.tex
  revealjs:
    output-file: something-great.html
```

Everything gets generated as expected. All 4 files. index.html, pdf, tex, and html (revealjs).

However, how can I do the same thing without having to do: "something-great" 4 times in the yaml and not have badly named files such as "pdf_document". In other words how can I use the value of the slug key as a value in the output-file key?

Is this the only way to do this?

Thank You.


 





2022-12-29T20:12:46Z
directknowledge
closed
Repeated yaml values
https://github.com/quarto-dev/quarto-cli/issues/3802