Plain is awesome up until you'd want to make some structure for your document(s), because getting the sectioning macros right seems to be painfully difficult.
Plain comes with a single sectioning macro called
\beginsection, but I would be interested in seeing your sectioning macro(s), or pointers to such definitions.
For you see, the problems I've had with making one are related to situations when there is a higher-level sectioning command directly followed by a lower-level sectioning command. Because normally I would indeed want there to be an allowance for page-break, but in the abovementioned case I'd certainly not want that. For clarity, by higher- and lower-level I mean a structure like (from highest to lowest):
So the question is: How can I make a sectioning macro which could differentiate between if it was used just after a higher-level sectioning command, or not
I chose not to post any example code because most of it would have nothing to do with the problem itself.