News for hackers. Stuff that matters.
Re:Quarto by hatmatrix on Wednesday February 14, 2024 @02:33PM (#39374102)
Hello, I have a rather specific question.

I want to write a detailed tutorial (as HTML page) and a condensed version of it (as Reveal JS slides) from a single document.

I have found this suggestion[1] to specify the separate output file name for the slides in the header, and `quarto render myfile.qmd` will generate both.

Is there a way to include content (long form text, code, or images) that will only be exported in the HTML page but not in the slides (where space is more limited)?

[1] https://github.com/quarto-dev/quarto-cli/discussions/1751

Re:Quarto by cscheid on Wednesday February 14, 2024 @03:05PM (#39374548)
Take a look at our conditional content support.

You'll want to use something like {.content-visible unless-format="revealjs"}

https://quarto.org/docs/authoring/conditional.html

Re:Quarto by hatmatrix on Sunday February 18, 2024 @03:52PM (#39423193)
Thanks! I'll give it a try.
Re:Quarto by j0k3r_85 on Wednesday February 14, 2024 @07:18PM (#39377483)
I recently did this by putting long form text into the talking notes of the revealjs presentation