PlutoUI.jl icon indicating copy to clipboard operation
PlutoUI.jl copied to clipboard

Page breaks

Open DhruvaSambrani opened this issue 4 years ago • 3 comments

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

DhruvaSambrani avatar Jan 12 '21 08:01 DhruvaSambrani

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)

pankgeorg avatar Jan 12 '21 10:01 pankgeorg

Hwo about this?

pagebreak() = html"<div style='height: 100vh'></div>"

fonsp avatar Jan 12 '21 13:01 fonsp

I implemented this here: https://github.com/fonsp/Pluto.jl/issues/297#issuecomment-759747014

We can add it to PlutoUI after some feedback

fonsp avatar Jan 13 '21 23:01 fonsp