Skip to content

Revealjs: mix horizontal and vertical slides in teaching context #826

Answered by jjallaire
cathblatter asked this question in Q&A
Discussion options

You must be logged in to vote

Any side that you mark with visibility="hidden" will not render (see https://quarto.org/docs/presentations/revealjs/advanced.html#slide-visibility)

So you could write a simple Lua filter that adds this attribute to all slides with a given class (e.g. .answer). For example (not tested!):

function Heading(el)
  if (el.attr.classes:find("answer")) then
    el.attr.attributes["visibility"] = "hidden"
    return el
  end
end

Then just only apply the filter when you are creating the student slides.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jjallaire
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants