revealjs: how to apply different spans to a block based on execution parameters to change layout and move part os the slide to speaker-notes? #12013
Unanswered
Gewerd-Strauss
asked this question in
Q&A
Replies: 2 comments 10 replies
-
Would you mind sharing something simpler with no or minimal dependencies? |
Beta Was this translation helpful? Give feedback.
10 replies
-
I re-discovered the following extension which could be of help or inspiration |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hello,
I am trying to generate a revealjs-presentation with dynaamic layouts based on using content-conditionals to apply specific spans.
Take the following code:
This code should be runnable, but I am not entirely sure, since it is part of a larger project.
The above should generate either of the following two layouts:
1: normal (example)
2: what I am trying to attempt by setting parameter
hide_notes: TRUE
when rendering,e.g. by executing
quarto render presentations/colloquium_presentation.qmd --no-cache --execute-params "presentations/layout2.yml"
, I would like to reach the following layout:The text marked in yelllow should be transformed to speaker-notes via application of
{.notes}
-span, and not be visible. I just included it for the sake of understanding my goal.Please also ignore that the figure-captions are missing in image2, that is not pat of my intended goal but I currently can't regenerate that layout that easily.
THat doesn't work. THe simple solution would be to just rewrite the section of the document to permanently change the structure, but I don't want that.
So my question is, if my understanding of applying spans is somehow flawed, or if I am trying to do the impossible here.
I can provide further details as required.
THank you.
Sincerely,
~Gw
Beta Was this translation helpful? Give feedback.
All reactions