#Avoid pagebreak after table?

8 messages · Page 1 of 1 (latest)

rancid patio
#

Hey there,

I have the following template (simplified):

= #lorem(2)

== #lorem(3)

#table(
    columns: (1fr, 1fr, 1fr),
    rows: 3,
    align: (x, y) => (left, center, center).at(x),
    table.cell(rowspan:2)[],table.cell(colspan:2)[#lorem(5)],
    [#lorem(3)], [#lorem(2)],
    [#lorem(2)], [#lorem(2)], [#lorem(3)],
)

== #lorem(100)

= #lorem(2)

== #lorem(20)

== #lorem(30)

== #lorem(30)

== #lorem(50)

= #lorem(50)

== #lorem(5)

=== #lorem(35)

=== #lorem(25)

== #lorem(65)

When rendered I get a pagebreak after the table. Why is this and is there a way to avoid this?

Thanks for your help!

drifting cloud
#

The issue isn't actually caused by the Table. Headings are "sticky" by default; since you have no other content in between, they all flow to the bottom

zenith kestrel
#

In an actual document this wouldn't happen, since you wouldn't just have a bunch of headings with no content

#

Though arguably headings of the same level shouldn't stick to each other

#

That doesn't really make sense

#

But again, shouldn't happen in an actual document

rancid patio
#

Ok, I see... Makes perfect sense... 🤔