#28106

Yes, that could be useful too, if you have a good idea about the size of the element coming after the heading. I’m not sure that it would be so helpful to add as a general directive in our pre-processor, though.

Most typesetting/word processing tools have logic that ensures that a header will never be the last thing on a page, it would be very neat to a have generic function like that in PD4ML.

Perhaps a tag like , that could be added by a pre-processor after every element that you don’t want to be the last on a page, would be really nice!