Via Max Kuhn:

> Does quarto have built-in environmental variables (or similar) during qmd compilation that reflects the output type? Similar to knitr::is_html_output() but cross-language and more specific about the output type?
> I’m trying to write single qmd files for books that get compiled in different formats. Any tools (e.g. chunk options etc) that make that easier would be fantastic.


cscheid
2022-08-30T16:04:27Z
cscheid
enhancement
v1.4
open
communicate format output to all engines 
https://github.com/quarto-dev/quarto-cli/issues/2216