Include or exclude certain variables when outputting to specific formats #11808
Answered
by
mcanouil
zackbatist
asked this question in
Q&A
-
DescriptionI want to control how certain variables get passed to certain output formats. For instance, I want to be able to include the author and date in the PDF output while suppressing this information in the HTML output. Is this feasible? |
Beta Was this translation helpful? Give feedback.
Answered by
mcanouil
Jan 7, 2025
Replies: 1 comment 1 reply
-
You only have to write it so: ---
format:
html:
title: "HTML Quarto Playground"
typst:
title: "Typst Quarto Playground"
---
This is a playground for Quarto.
{{< lipsum 1 >}}
![An image]({{< placeholder 600 400 >}}){#fig-placeholder} Note that "suppressing" in HTML can also be achieved using (S)CSS: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zackbatist
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You only have to write it so:
Note that "suppressing" in HTML can also be achieved using (S)CSS:
display: none;
.