PlutoUI.jl
PlutoUI.jl copied to clipboard
Page breaks
I'm not sure if this should go here or in Pluto.jl
Is it possible to add a page break in the notebook?
User adds a pagebreak() at any cell they want to break the notebook at.
At this point, the display stops and the rest of the cells are hidden, and a next page button is added to the cell which had the pagebreak, which when clicked displays the next cells until it encounters the next pagebreak
If and when the notebook in notebook is implemented, I think you can also break the notebook itself.
This issue is very closely related to fonsp/Pluto.jl/issues/297
there is a hidden feature, that is highly likely to be removed in the future, that does what you're describing:
html"""<button onclick="present()" type="button">Present!</button>"""
It adds a big margin before each markdown title cell (that is, cells that are markdown and have h1s)
Hwo about this?
pagebreak() = html"<div style='height: 100vh'></div>"
I implemented this here: https://github.com/fonsp/Pluto.jl/issues/297#issuecomment-759747014
We can add it to PlutoUI after some feedback