Replies: 1 comment 2 replies
-
I don't think HTML pagebreak means something in a HTML presentaton. That is why the pagebreak feature does not work for revealjs format. We could adapt it to create a new slide in presentation, but it is not the same meaning, and not the same implementation. I think what you want is to add a new slide at some point using some syntax that would apply only in revealjs. The syntax you found is the way to do it currently, but you could also use a shorter syntax and create a lua filter for your project. Example ---
title: test
format:
html: default
revealjs: default
filters: [new-slide.lua]
keep-md: true
---
## content
Some content
## {.only-reveal}
Some other content on a new slide
Lua filter Header = function(h)
if h.classes:includes("only-reveal") then
if not quarto.doc.is_format("revealjs") then
return {}
else
h.classes["only-reveal"] = nil
end
end
end This filter could be apply to your whole project, and it removes the header except on revealjs, where it will become a new slide We have some docs to help developing in Lua https://quarto.org/docs/extensions/lua.html Hope it helps |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
have a project with content that adaptively renders subset of content to presentations (with exercises for students) and a subject "book".
Sometimes the long format of slides is a bit of a pain, and I would like to include a page break.
---
does not seem to alwyas work, or renders a line in the output text, and causes issues for the html/pdf pipeline. Inserting a blank slide wtih a blank header works##
, but then includes an unsightly numbered section with no content in the html/pdf output.I have found somewhere {{new page}} ( or some such similar command, cannot recall) that just did not work. Any hint?
Presumably I could surround
but that seems like overkill
Martin
Beta Was this translation helpful? Give feedback.
All reactions